Single screen game, cant keep player in bounds [SOLVED]

For questions about using Classic.

Post » Sun Nov 15, 2009 5:49 am

How can I make a boundary that the player can not exit while the enemies can?

Think arkanoid or breakout, theres a wall the player cant exit.


But, then, unlike those games, the enemies can.
B
2
G
3
Posts: 24
Reputation: 898

Post » Sun Nov 15, 2009 10:56 am

If it is single screen game, just add sprites that cover edges of the screen (outside view, if you want), then in the movement code check for collision with the player only.

Alternatively, you can alter movement to only be able to move within limits ( 0<x<DisplayWidth, 0<y<DisplayHeight) for the player only.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sun Nov 15, 2009 11:12 pm

Worked like a charm. Thanks.
B
2
G
3
Posts: 24
Reputation: 898


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests