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,974

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
22
S
13
G
135
Posts: 871
Reputation: 70,320

Post » Tue Jul 07, 2015 8:18 pm

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


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests