Trigger an actor issue

kajutokajuto Member Posts: 314
edited March 2012 in Miscellaneous
How when the hero actor collide with an object then the third actor move to y axis value? I just want to know when 1 actor collide with the 2nd one then the third actor start to move thank advance

Best Answer

  • CloudsClouds Posts: 1,599
    edited March 2012 Accepted Answer
    John, i tried that, but i don't know why it won't move the Third jaja

    You need to explain clearly and in detail exactly what you did (screen shots of your code would really help) . . . simply saying "tried that, didn't work" is not much help when trying to diagnose a problem.

Answers

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited March 2012
    Make a boolean attribute and call it whatever you want. Ill call it moveThird as an example.

    In actor 1 have a rule when it collides with actor 2
    -change attribute moveThird to true

    Then in the third actor have a rule when attribute moveThird=true
    -then put your move behaviors in there.

    Also i recommend you check out all the tutorials on the gamesalad cookbook youtube chanel, gshelper.com and at the cookbook link at the top of this page. Youll have a much better understanding of gamesalad after you do.

    Cheers
  • kajutokajuto Member Posts: 314
    John, i tried that, but i don't know why it won't move the Third jaja
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    John, i tried that, but i don't know why it won't move the Third jaja

    You need to explain clearly and in detail exactly what you did (screen shots of your code would really help) . . . simply saying "tried that, didn't work" is not much help when trying to diagnose a problem.
    +1

    What i told you will work, so you must have done somethign wrong. Cant really tell you anything other then that without seeing what you did.
  • kajutokajuto Member Posts: 314
    how can i post here screen shot?

    what i put to the Third actor is :

    Att. game.Roof.move is true
    move to behavior
    -position x=278.3828 , y= 0 relative to scene and speed 75

    First actor is:
    Att overlap or collides with trigger (switch)= Second actor
    Change Att
    - game.roof.move object to true

    Second actor= Trigger switch
    - i didn't use code for this actor
  • calvin9403calvin9403 Member Posts: 3,186
    shift command 4 and upload to tiny pic

    I don't see any problem with your code,but game.roof.move object to true(what is the object doing there?)
  • kajutokajuto Member Posts: 314
    Moving from y axis value to y axis value in other word it's moving up and down when the first actor collide with second actor then the third actor move up and down
  • kajutokajuto Member Posts: 314
    i did it. Thanks to everyone!
Sign In or Register to comment.