Double tap and tap events on the sprite

Discussion and feedback on Construct 2

Post » Tue Feb 14, 2017 1:28 pm

lamar wrote:
99Instances2Go wrote:Dear lamar, you made the perfect capx to clearly show the opposite. So allow me to rest your case.

Want a fresh coffee to make up ?


I would say you simply don't understand the function of double tap and tap to set a variable trigger but maybe can't admit it?

If you have already set a variable with double tap why would you double tap again.

If you need to toggle between event actions use single tap and just toggle the variable.

It is that simple!


User will double tap (or tap) whenever he wants, he will not be going to delve into game inner structure
B
9
S
2
Posts: 34
Reputation: 603

Post » Tue Feb 14, 2017 1:35 pm

@lamar using those triggers: make a sprite destroy itself on a single tap, but flash on a double tap ;)
Image
B
30
S
9
G
3
Posts: 171
Reputation: 3,329

Post » Tue Feb 14, 2017 1:59 pm

AndyRevenko wrote:User will double tap (or tap) whenever he wants, he will not be going to delve into game inner structure


Can you share a capx or explain what functionality the tap and double tap will be performing?
Image
B
30
S
9
G
3
Posts: 171
Reputation: 3,329

Post » Tue Feb 14, 2017 2:06 pm

Boy you guys are hard headed lol!

Here is the CAPX and events:

Image

https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

Tap and double tap when used as expected on a single event work perfectly to set a trigger.

If you are using multiple events use singe tap with a wait to set the triggger variable.

I use these all the time in my games guys!
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Tue Feb 14, 2017 2:09 pm

gameglaux wrote:
AndyRevenko wrote:User will double tap (or tap) whenever he wants, he will not be going to delve into game inner structure


Can you share a capx or explain what functionality the tap and double tap will be performing?


On "tap" I planned to select object for some operation in future (move, copy, so on), on "double tap" I would just to destroy the objest :) It would be very easy to user for understanding;
here is screenshots (from my google drive), i tried to test both events, but only "tap" or course was running
Image
B
9
S
2
Posts: 34
Reputation: 603

Post » Tue Feb 14, 2017 2:16 pm

lamar wrote:Boy you guys are hard headed lol!

Here is the CAPX and events:

Image

https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

Tap and double tap when used as expected on a single event work perfectly to set a trigger.

If you are using multiple events use singe tap with a wait to set the triggger variable.

I use these all the time in my games guys!


Sorryl Lamar, but you have used "double tap" for one sprite (sprite4) , and "tap" for another - spriteread.
I was trying to use both events for the same sprite :)
B
9
S
2
Posts: 34
Reputation: 603

Post » Tue Feb 14, 2017 2:21 pm

AndyRevenko wrote:
lamar wrote:Boy you guys are hard headed lol!

Here is the CAPX and events:

Image

https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

Tap and double tap when used as expected on a single event work perfectly to set a trigger.

If you are using multiple events use singe tap with a wait to set the triggger variable.

I use these all the time in my games guys!


Sorryl Lamar, but you have used "double tap" for one sprite (sprite4) , and "tap" for another - spriteread.
I was trying to use both events for the same sprite :)


Oh, sorry - you have used both events for the sprite4, Bu I do not see when "Double tap on sprite4" will run. it will be never fired, because "tap" overwrite it.
Here is my testing example:
Image
B
9
S
2
Posts: 34
Reputation: 603

Post » Tue Feb 14, 2017 2:24 pm

AndyRevenko wrote:
lamar wrote:Boy you guys are hard headed lol!

Here is the CAPX and events:

Image

https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

Tap and double tap when used as expected on a single event work perfectly to set a trigger.

If you are using multiple events use singe tap with a wait to set the triggger variable.

I use these all the time in my games guys!


Sorryl Lamar, but you have used "double tap" for one sprite (sprite4) , and "tap" for another - spriteread.
I was trying to use both events for the same sprite :)



Did you try the CAPX?

You can use single tap as a register for double tap as that second use of events with the red sprite shows.

Tap the red box once and it changes size. Double tap and it changes size again.

I gave you BOTH examples so you can use which ever works for your game.

Works like a dream!
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Tue Feb 14, 2017 2:35 pm

gameglaux wrote:@lamar using those triggers: make a sprite destroy itself on a single tap, but flash on a double tap ;)


Now think real hard....

If you destroy the sprite you double tap you sure as hell can't tap it again to make it flash.

Just like I asked why you would double tap a sprite already set to double tap?

Nice try!

Try this:

https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0
Last edited by lamar on Tue Feb 14, 2017 3:26 pm, edited 1 time in total.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Tue Feb 14, 2017 3:05 pm

lamar wrote:
gameglaux wrote:@lamar using those triggers: make a sprite destroy itself on a single tap, but flash on a double tap ;)


Now think real hard....

If you destroy the sprite you double tap you sure as hell can't tap it again to make it flash.

Just like I asked why you would double tap a sprite already set to double tap?

Nice try but fail!

Try this:

https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

Lamar, row number 2 " double tap on sprite4" will NEVER run. If you delete that row nothing will changes
B
9
S
2
Posts: 34
Reputation: 603

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: bounty and 22 guests