How do I swipe screen left to reveal sprites outside of view

Get help using Construct 2

Post » Wed Apr 08, 2015 4:27 pm

:D

...only to avoid the hard numbers...
..in my example WindowWidth=640....in your capx WindowWidth is 1280
if you set variable(WWidh ) to WindowWidth. code like clamp(Self.X, WWidh-Self.Width, 0)
works in both cases..
and I noticed that if I use WWidh/2 instead of the WindowWidth /2 it litle lessl agging when i compare X
Image
B
62
S
23
G
7
Posts: 1,470
Reputation: 10,731

Post » Wed Apr 08, 2015 11:26 pm

How to simulate "touch up" instead of "inverting touching object"? When in unity we can do mouse-down and mouse-up
B
36
S
13
G
1
Posts: 88
Reputation: 3,096

Post » Wed Apr 08, 2015 11:31 pm

nikosurfing wrote:How to simulate "touch up" instead of "inverting touching object"? When in unity we can do mouse-down and mouse-up


On touch end.
B
56
S
18
G
9
Posts: 634
Reputation: 9,398

Post » Wed Apr 08, 2015 11:36 pm

@Elliott: I mean touch-up on the object, i like the example capx of the @R0J0hound, but user failed to swipe the level when user swiped on the sprite2 because C2 trigger the sprite2 action immediately.
B
36
S
13
G
1
Posts: 88
Reputation: 3,096

Post » Wed Apr 08, 2015 11:54 pm

For specific objects you could -

A) Use a boolean flag to determine when the object touch ends.
B) Use Nth touch in conjuction with sub-events.
B
56
S
18
G
9
Posts: 634
Reputation: 9,398

Post » Fri Apr 10, 2015 1:33 pm

korbaach wrote:@chewz
..you need to set "roller" origin point x=0...

capx:
http://s000.tinyupload.com/index.php?fi ... 8965697697


I must be missing something - I can't find how to set the original point x = 0. Nothing in events, nothing on the roller sprite itself to set this. Probabably sounding stupid but forgive my newbie questions...
B
4
Posts: 19
Reputation: 238

Post » Fri Apr 10, 2015 2:39 pm

chewz wrote: Nothing in events, nothing on the roller sprite ..


:)
in image editor ..
Image
Image
B
62
S
23
G
7
Posts: 1,470
Reputation: 10,731

Post » Wed Apr 15, 2015 1:47 pm

Sorry for late reply - wow the help around here is amazing :). Thanks alot.
B
4
Posts: 19
Reputation: 238

Previous

Return to How do I....?

Who is online

Users browsing this forum: ismael123 and 4 guests

cron