Making the Snake Game in GKC





Is that good?

3 Likes

It seems like that should work. Can you show me the settings for that trigger and the code for the trigger that receives on “GameOver?”?

5 Likes



3 Likes

That looks like it should work too. Are all of your properties set to the right types?

2 Likes

Yes all of the properties are set to the right types.

2 Likes

Snake and Direction should be text, and the rest should be numbers. I’m out of time, but I’ll try to help you tomorrow.

6 Likes

this look hard + how would you make the snake

3 Likes

Look at Step 12. The 3 highlighted barriers in one of the screenshots are what make up the snake.

4 Likes

I’m pretty sure that either the game is ending early or the display isn’t updating (or in other words: the barriers aren’t turning off and on). Here’s a few things you can check.

1: Count how much time it takes between pressing the button and the end of the game (is it 4.5 seconds?).

2: Get rid of the first “broadcast message on channel end” block in the trigger that receives of “GameOver?” and see if it still ends early, then replace that block and get rid of the other one and try.

3: Create a game overlay that shows X and Y coordinates. See if this matches up with what should happen.

Tell me what happens after each of these tests and I should be able to find the problem more easily.

Note: Don’t move when you’re running these tests.

6 Likes

Alright I would like to say that that would be a mistake on my part. All of the properties were text and not number. :sweat_smile: Whoops. But erm when I pressed start, another problem arose. Yes the game is working as it is supposed to, but when I try to move the snake in a direction, it would just keep on going right until the game ends. I am sorry for my mistake yesterday.

eh I’ll be back tomorrow cya

5 Likes

bu mp

5 Likes

Great guide! This is awesome. I’m a bit confused with the properties though.

5 Likes

Small question:
Should the game-recreation tag be added to this?
It depends what type of ‘game’ it means.

6 Likes

bump
reusable
wait 5-7 days before checking

pls glaze korm -quo

11 Likes

I trying to make it, ATM, the guide is kinda confusing, but it’s workin’. :+1:

6 Likes

man, if there’s a reusable bump, don’t nullify it unless you need help (which, according to ur post, u dont)

@TheCatIsCrazy and u just nullified another one

7 Likes

NEW new reusable bump

DO NOT REPLY UNLESS YOU NEED HELP!

guys stop clicking it more than like once every 5-7 days


R.I.P, reusable bump, thanks a lot guys :frowning: - Jhan

12 Likes

New reusable bump
ig people LOVE nullifying them…
sigh


@Warrior_Of_Death16 do not reply PLEASE

11 Likes

Well you just nullified a fifth one.

New one ig
fifth one

kor you counted wrong this the the fifth one. I changed

11 Likes