need help please

odesignodesign Member Posts: 11
edited April 2012 in Working with GS (Mac)
anyone knows how to do this or have a template similar ? i really need help please

http://odesigncommunication.com/gs/point3.jpg

Best Answer

  • JohnPapiomitisJohnPapiomitis Posts: 6,256
    edited April 2012 Accepted Answer
    Make an attribute called hit(boolean) and one called score(interger)

    when ball collides with actor1
    -change attribute hit to true

    In your spawn box have a rule when hit=true
    -spawn actor
    -change attribute score to score+1
    -change attribute hit to false

    make sure the change attribute hit to false is the last behavior in that rule

Answers

  • odesignodesign Member Posts: 11
    Hi John,

    Thanks a lot but 1 question, can you explain me again about the last part:

    In your spawn box have a rule when hit=true
    -spawn actor
    -change attribute score to score+1
    -change attribute hit to false

    Sorry for asking but how do you make the rule to hit=true?

    I mean, i had >> create rule >> and then ?

    and these 3 ?
    -spawn actor
    -change attribute score to score+1
    -change attribute hit to false

    sorry you lose me on that last part, can you explain me exactly how you do it ? (sorry, i am starting)
  • odesignodesign Member Posts: 11
    sorry, can you just tell me in details hot to do this:

    change attribute hit to true

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited April 2012
    You put a change attribute behavior select that hit attribute and type in true in the box next to where you select the behavior in the change attribute behavior.

    You should check out the gamesalad cookbook at the link at top, and the tutorial videos at gshelper.com and the gamesalad cookbook youtube channel.

    Seems like you still have to learn the basics and the way gamesalad works. Setting up rule conditions and the way you set up behaviors are stuff youll have to learn before you can do anything else.

    cheers
  • odesignodesign Member Posts: 11
    yes yes i know sorry for asking ;) but its working now. But 2 problem occurs: i try to accelerate the actor 2 once it reach the spewing box, any idea because of course, in spawning actor, if i just had a accelerate, spawn will move and not actor 2...

    and last issue is the actor 2 didn't disappear once the ball touch it but i did what you said, am i missing something, can't i just had a destroy instead ?
  • odesignodesign Member Posts: 11
    sorry again, everything is working now except the issue about spawning, If you could just explain me where to place a rule or which one that when it spawn the actor 2 (after if hit), i try to make the actor 2 accelerate at left direction when it goes out of the spawn box, any idea (because its moving the spawn box instead of the actor2) ?

    after, it will be 100% perfect for your explanation !! thanks in advance!
  • odesignodesign Member Posts: 11
    my friend, everything is working now, you helped me a lot, 2 thumbs up, thanks again for everything help !!!!
Sign In or Register to comment.