Help with game?!?!?

da_richeyda_richey Member Posts: 4
edited November -1 in Working with GS (Mac)
I need help with just one thing. This may be confusing but if you understand please help me.

Ok I want to know if there is a way to, when you click a button an actor will appear. Is there any way?

Thanks.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Yeah lots of Ways. If your not really seeing the obvious which is spawn. you may want to head over to http://www.youtube.com/user/GameSaladCookbook and watch all those videos. Not just a couple really watch them all. It will really help you in the long run.
  • GamersRejoiceGamersRejoice Member Posts: 817
    Sure, just make a game attribute (boolean) label it spawn.

    Then in your button actor make a rule that says when:
    actor touch is pressed
    change game.spawn to true.

    Edit: Well, I'm done trying to help for now. Tendrmer
    Then in the actor you are spawning create a rule that says:
    when game.spawn = true
    spawn actor

    That's one way to do it at least.

    Edit: well I'm done trying to help on the forums for now. Tenrdrmer has things covered.
  • da_richeyda_richey Member Posts: 4
    @tenrdrmer will spawn actor work if I want it to just appear in a certain place and stay there?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Yeah You just tell it the positions you want it to spawn at. And if your actor is not set to move then its gonna stay right where it spawns.

    I'm serious. You will learn loads from those videos. Good Luck

    @Gamers
    Sorry I beat you to it. To be honest though this is the first thread where I have noticed it happen with you. JohnPapiomitis and I have a running score of who beats who to the same answers though if it makes yo feel any better. :)
  • da_richeyda_richey Member Posts: 4
    Well I have the positions I want, but when I click the button that spawns it, it spawns and just like fly's up to where I want but then it keeps going...

    I don't know which video to click on. There are so many.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    If your picking a position in the scene then you need to set it relative to the scene. Also if you have any kind of move rules placed freely in you actor that is being spawned it will move as soon as its spawned. Try just spawning a blank actor and see what happens. Get a feel for how it all works before you try to add it into a working project.

    And as far as the videos. Devote a couple hours and just sit down and watch them all. Theres another batch of good videos at www.GShelper.com to watch once you get through the cookbook. GameSalad is a great tool and its really easy to use once you get the hang of things but you gotta spend some time learning the basics first things like how each behavior works and what you would use them for. Otherwise your gonna have lots of bumps in the road as you try to learn it all as you go.
  • GamersRejoiceGamersRejoice Member Posts: 817
    @ Tenrdrmer

    It was actually the second in a row. :) I tried to help the other thread "camera help" only to post right after you. No worries.
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Yeah, that can't be stressed enough. Pop you some pop corn, get a bucket of beer, and kick back, watch, and take notes. You'll be better off if you watch all the videos instead of just jumping in and starting a game. I've watched each and every one of them more than twice, and I refer to a couple of videos every day to help me get something done.
  • da_richeyda_richey Member Posts: 4
    Thanks so much everyone now i just have to figure out what position the place is. Well bye and thanks again
Sign In or Register to comment.