Using "is touched" with another condition !

0 favourites
  • 8 posts
  • I´m actually doing some kind of target selection.

    I want to do something like this:

    If Button Attack is Pressed set Variable Target to 1

    If Target is 1 and Monster 1 is touched create target marker and set variable Target to 2

    If Target is 2 and Monster 1 is touched do an attack roll

    How can i achieve sth like this ?

    Everytime i use touch with something else it doesnt work

  • It doesn't work how? Better to post a screenshot of the events so we can understand what you are doing. Because events run top to bottom it's possibly doing the first event then the second event very quickly together.

  • Just tested something simple of mobile but it works fine.

    If you could post screenshot of your code it will help as we will be able to see if there are any conflicting events

  • ibb.co/G941DnM

    This is what im trying to do didnt translate everything

    "Lerissa Ist am Zug" means: It´s Lerissas turn

    "Lerissa Ist am Leben means: Lerissa is alive

  • It doesn't work how? Better to post a screenshot of the events so we can understand what you are doing. Because events run top to bottom it's possibly doing the first event then the second event very quickly together.

    The condition "is object is touched" doesnt work if you put another condition with it in a row. I want to start the event when an object is touched and a variable is 1 for example.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • These are standard events and should work if they are true. Check if the variable value is 1.

  • These are standard events and should work if they are true. Check if the variable value is 1.

    ibb.co/dLVRXr0

    yea already checked, if i press the button the variable is switching from 0 to 1.

    Still touch with variable isnt working.

    If i delete the variable check its working as intended

  • Ok i searched for an hour :)! I needed to change my variable from local to global to have it working. Thanks for your help guys.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)