How do I fix this snake game?

Get help using Construct 2

Post » Sun Mar 20, 2016 3:06 pm

Hello!,

So I'm making a snake like game, and there seems to be a phantom row and column off-screen, where the snake can stay hidden.

I want it to be that as soon as the 1st head leaves the screen, it appears on the other side.

https://dl.dropboxusercontent.com/u/20062568/sg.capx

Thanks!
B
25
S
8
Posts: 84
Reputation: 1,697

Post » Sun Mar 20, 2016 3:12 pm

You are off-by-one. Your grid is 20x15, which would be 0 to 19, 0 to 14. You have to include zero in your count.
ImageImageImage
B
71
S
21
G
229
Posts: 3,686
Reputation: 128,336

Post » Sun Mar 20, 2016 6:50 pm

blackhornet wrote:You are off-by-one. Your grid is 20x15, which would be 0 to 19, 0 to 14. You have to include zero in your count.


Thanks! It's working now.
B
25
S
8
Posts: 84
Reputation: 1,697


Return to How do I....?

Who is online

Users browsing this forum: eochranek, fearfulelephants and 18 guests