Hi i need help with my game

TheTigerTheTiger Member Posts: 53
edited January 2015 in Working with GS (Mac)

Hi i need help, I'm really stuck, basically i want to know, when the snake collides with an object. how do i make that object disappear and reappear in a random place within the walls.

Thats the first thing.

The second thing, when the snake collides into the wall, how do i make the game freeze, because the game is over, and it will say game over, and also a button to restart.
Please can you explain in as much detail as possible

Any help would be much appreciated, thank you.

Comments

  • jigglybeanjigglybean Member Posts: 1,584

    Its worth looking at the videos and tutorials here for basic game functions

    To end a game, you need to create a game level attribute - GameOver boolean. Booleans are a True/False question/answer thing. So an example would be

    If Game.gameover is true then reset scene (to play it again.) Remember, you will need to add this rule to everything you want to be destroyed.

    You can download this template free to show you how game over works etc

    Like Balls? Then click here! We've 100 coming soon

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    You posted in the PAID request subforum. I take it you're looking for advice, which is fine. Are you using Mac or Windows? I'll move this to the appropriate subforum for you.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • TheTigerTheTiger Member Posts: 53

    @tatiang said:
    You posted in the PAID request subforum. I take it you're looking for advice, which is fine. Are you using Mac or Windows? I'll move this to the appropriate subforum for you.

    Hi tatiang, I'm using Mac.

  • DaftbombDaftbomb Member Posts: 36

    The best way to learn to do something is sometimes to experiment. I'm in the same boat as you, I'm very new to development but I cannot overstate how beneficial playing with basic ideas and logic has benefitted me. You learn a lot through mistakes.

    I would think about a solution where the player, walls and object are individual actors and how they would behave when they interact with each other. Perhaps use a rule that changes an attribute when an event occurs. I'm being a bit cryptic as this is (hopefully without sounding like an idiot) quite a basic concept and I'd worry you'd struggle with more complex logic and behaviours without understanding the foundations of the basics. I could be wrong, but I'm new here too.

    Also, I doubt I'd do the actual answer anywhere near the justice socks, armeline taitang or many of the other game salad geniuses would provide. The fun part is playing with the kit and learning by trial and error to begin with.

Sign In or Register to comment.