Bouncing ball in only 8 directions

For questions about using Classic.

Post » Tue Jul 12, 2011 8:37 pm

Is there a simple way to limit a bouncing ball to only 8 directions? like a event with "on collision with solid" and an action "set angle 0,45,90,135,180,225,270,315,360".

Im using it to emulate the Bomberman 64 game i liked to play where u played bomberman but in 8 directions not 4. Thanks.
B
2
G
1
Posts: 2
Reputation: 504

Post » Wed Jul 13, 2011 12:33 pm

Always
-> Sprite: Set angle of motion to int(.angle/45)*45
B
82
S
26
G
63
Posts: 4,842
Reputation: 45,724

Post » Thu Jul 14, 2011 6:05 pm

Great :D   Thank you!
B
2
G
1
Posts: 2
Reputation: 504


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests