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

Get help using Construct 2

Post » Tue Jan 03, 2017 6:08 am

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.
B
49
S
15
G
20
Posts: 87
Reputation: 13,063

Post » Tue Jan 03, 2017 8:55 am

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.
Image Image Image
B
32
S
12
G
27
Posts: 761
Reputation: 17,246

Post » Tue Jan 03, 2017 12:50 pm

MPPlantOfficial wrote: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.
B
49
S
15
G
20
Posts: 87
Reputation: 13,063


Return to How do I....?

Who is online

Users browsing this forum: Importuno and 8 guests