...touch empty space and register a miss?

Get help using Construct 2

Post » Thu Nov 21, 2013 8:34 pm

Ok so I have this game Zen Hopper

It's a simple game i'm looking to take to Phone 8 as a test project. In this version, it's working as it should overall.. but what I need to also do is register a MISS, if they touch the screen, but fail to touch a log.

I can't figure out a good approach for this. I'm sure it's simple, but I'm still pretty new to C2. In my logic, I can't seem to invert some of the game rules.

seems like there should be some way to say "touching the screen, but not touching log object".

Thanks!
Calebpart12studios2013-11-21 20:36:59
B
56
S
9
G
1
Posts: 938
Reputation: 6,458

Post » Thu Nov 21, 2013 9:03 pm

Construct has the ability to invert conditions (rightclick on it -> invert).

So: on touch start, is touching log object (inverted) should do the trickmindfaQ2013-11-21 21:03:30
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Fri Nov 22, 2013 12:40 am

thanks for the tip! However it seems that any time i right click, invert is grayed out. Is there something more i have to do in order for a condition to be invert-able?

my attempt was like this, as a tester:

touch - on touched "log" - create object "cloud" at touch x , y... part12studios2013-11-22 00:40:58
B
56
S
9
G
1
Posts: 938
Reputation: 6,458

Post » Fri Nov 22, 2013 12:48 am

I already wrote the correct code:
on any touch start AND is touching log object (inverted): do stuff
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Fri Nov 22, 2013 2:22 am

Some conditions can't be inverted because of some issues they could cause on the code , because logic says so ^^
See the post below for more info Whiteclaws2013-11-22 02:30:15
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,461

Post » Fri Nov 22, 2013 2:25 am

The ones that can't be inverted are triggers and many system events. Stuff like key pressed, collision with, functions, ... . Also loops and some other stuff where it wouldn't make sense.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests