How to set bullet angle towards a random spot in the layout?

Get help using Construct 2

Post » Tue Jul 07, 2015 8:08 pm

How do I set bullet angle of motion towards a random coordinate in my layout?
Image
B
20
S
4
Posts: 382
Reputation: 2,984

Post » Tue Jul 07, 2015 8:14 pm

You can try:
Angle of motion= angle(self.x,self.y,random(layoutwidht),rancom(layoutHeight))
Image Image
B
25
S
14
G
139
Posts: 876
Reputation: 72,510

Post » Tue Jul 07, 2015 8:18 pm

@MadSpy - thank you!
Image
B
20
S
4
Posts: 382
Reputation: 2,984


Return to How do I....?

Who is online

Users browsing this forum: Coren8r and 32 guests