0 Favourites

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

• 3 posts
• 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.

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

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.

• 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.

• 3 posts