How do I make a true and false condition for one action

0 favourites
  • 3 posts
From the Asset Store
Math questions appear quickly on the page, so you must respond quickly to get points!
  • Hi guys,

    I've been figuring out how I can do two types of condition that will do one same action.

    here's what I mean.

    event >>> if I touch the 8 direction touch control object + the fire button = (action)>>> the player will fire bullets

    now, if I do not touch the 8 direction touch control, and only touch the fire button I will still get the same action >>> the player will fire bullets.

    Thanks in advance for the help.

  • from what I can tell you really only need to put in the event-action for the

    is touching the fire button = fires bullets

    function and that should get you covered.

    Now HOW the bullets is fired is another story.

    is touching the fire button = fires bullets should fire a bullet once.

    > is touching the fire button = fires bullets

    | every 0.2 seconds should give you rapid fire.

    Now you can create a separate function for movement and you should be good.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • from what I can tell you really only need to put in the event-action for the

    >>> is touching the fire button = fires bullets

    function and that should get you covered.

    Now HOW the bullets is fired is another story.

    >>> is touching the fire button = fires bullets should fire a bullet once.

    >>> is touching the fire button = fires bullets

    | every 0.2 seconds should give you rapid fire.

    Now you can create a separate function for movement and you should be good.

    Yes, I already set the fire button with "is touching" on the event. I forgot to mention, it does fire, but the firing pose animation for the player is not working for the other 2 set of combination if I use the other one.

    What I'm after

    action to fire bullet with firing pose of player animation with two condition sets

    condition set 1: touch the 8 direction touch control object + the fire button

    condition set 2: not touching the 8 direction touch control, and only touching the fire button

    How can I combine 2 condition sets to do one action. I already used "or" on the event condition but it separates each condition making it 4 conditions.

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