How do I move an object acording to touch?

Get help using Construct 2

Post » Wed Feb 05, 2014 10:06 pm

move with touch example

RamPackWobble2014-02-05 22:09:25
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Thu Feb 06, 2014 7:51 pm

[QUOTE=RamPackWobble] move with touch example

[/QUOTE]

looks simple enough, I'll try it.
B
3
Posts: 8
Reputation: 191

Post » Thu Feb 06, 2014 7:58 pm

[QUOTE=LittleStain] looks like simple drag and drop behaviour with offset.

either create a sprite on touch with drag and drop and pin it to the ship position sprite, or create offsetx and offsety variables and position the ship acording to touch.x-offsetx and touch.y-offsety.[/QUOTE]

I'm sucessfully pinning objects now, but once an object gets pinned, it looses it's "bound to layout" property. is there a way to fix it?
B
3
Posts: 8
Reputation: 191

Post » Thu Feb 06, 2014 9:42 pm

[QUOTE=Zero999] [QUOTE=RamPackWobble] move with touch example

[/QUOTE]

looks simple enough, I'll try it.[/QUOTE]

It doesn't work. since the variables are the same, the sprite doesn't move.
B
3
Posts: 8
Reputation: 191

Post » Wed Feb 12, 2014 8:39 pm

Sorry - I missed this.

Of course it works - didn't you download the capx ?

demoRamPackWobble2014-02-13 08:31:48
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Previous

Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, sean080, Yahoo [Bot] and 25 guests