How do I make a sprite move randomly in the map?

Get help using Construct 2

Post » Thu Aug 10, 2017 1:37 am

I have a sprite, a city map. How to make the sprite move randomly on the street, change direction when it hit a the wall?
B
13
S
1
Posts: 11
Reputation: 547

Post » Sat Aug 12, 2017 9:07 am

(object) on impact with wall> (object) set object angle to> choose(self.angle+random(-90, -160), self.angle+random(90, 160))
. . . . . . . .event . . . . . . . . . . action . . . . . . . . . . . . . . . . . . . . . . . . . . . . formula to use . . . . . . . . . . . . . . . . . .
'Image'Image'Image
B
19
S
5
G
2
Posts: 97
Reputation: 2,374


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 17 guests