Game is out of control!! URGENT!

expired_012expired_012 Member Posts: 1,802
edited November -1 in Working with GS (Mac)
Ok, so i just learned how to trigger an actor using another. I need this so i can make it compatible with the touch screen on iphone. So when i move the actor by pressing the other, sometimes my actor moves by itself randomly when the scene changes. I dont know why this is happening but its getting really annoying! When I was moving my main actor with the keyboard keys everything was working fine. Is there a way to force an actor to stay in its chosen place until it has been told to be moved? if anyone could help i would really appreciate itt!! Thanks

Comments

  • expired_012expired_012 Member Posts: 1,802
    Trigger left:

    When......Attribute (game.triggerLeft)=1

    Move- Direction (180) speed (250) Relative to Actor Most Type Additive

    Trigger Right:

    All of the same settings except direction is set to 0.

    I put this for my main actor everytime
  • expired_012expired_012 Member Posts: 1,802
    Well i have another actor with 2 rules saying that when touch is pressed, change attribute- game.triggerLeft=1 and when touch is released change attribute to 0. I did the same thing for my actor that moves my main actor right.
  • expired_012expired_012 Member Posts: 1,802
    Ok it starts off at 0 but when the error happens again it turns into a 1. What does this mean?
  • expired_012expired_012 Member Posts: 1,802
    And the 1 is held since the actor keeps on moving and killing itself
  • iDeveloperziDeveloperz Member Posts: 1,169
    When it dies add a rule,

    change attribute game.triggerLeft to 0
  • expired_012expired_012 Member Posts: 1,802
    Omg it worked!!! Hahah thank you guys so much you really helped me outt!! Ive been trying to figure that out for like a week! But one more thing, when a new scene starts my main actor moves by itself too. Now when an enemy kills me i no longer have this problem but when a new scene comes up my actor goes on by itself. How do i tell it to start at 0 when the new scene starts? thanks
Sign In or Register to comment.