How do I

Get help using Construct 2

Post » Fri Jul 22, 2016 3:47 pm

Hello everybody, does anyone have an idea on how I can drag and drop an animated object? I tried by adding the drag and drop behavior to the animated object but did not work. I will be glad for any assistance.
B
6
S
1
Posts: 44
Reputation: 484

Post » Fri Jul 22, 2016 4:11 pm

@joeb12

Did you make sure to set yes to loop in your animation properties window of the sprite on the left side of the screen?
B
16
S
9
G
5
Posts: 74
Reputation: 4,120

Post » Fri Jul 22, 2016 4:27 pm

yes I set loop to yes, all I want to do is to be able to drag the object when it is touched.
B
6
S
1
Posts: 44
Reputation: 484

Post » Fri Jul 22, 2016 4:30 pm

@joeb12
Do you have a capx to share, because it should work fine on its own.
B
16
S
9
G
5
Posts: 74
Reputation: 4,120

Post » Fri Jul 22, 2016 8:25 pm

@joeb12

It could be the collision polygons of the animation. You might be trying to drag it on a frame with an oddly shaped collision polygon and it's not detecting the touch properly.
Find all the Construct 2 games that were on Steam Greenlight here
B
33
S
9
G
7
Posts: 451
Reputation: 6,782

Post » Fri Jul 22, 2016 9:27 pm

Hello @joeb12

I can't understand your problem. Simple example:
https://www.dropbox.com/s/pyd6se1gssrtap0/template_drag_drop_sprite.capx?dl=0

If it didn't work:
-Behavior is disabled
[email protected] to small polygon (if you don't set the polygon it is the whole sprite)
-wrong event to drag the object ... (in simple way you do'n need an event)
-touche event is not recognized (test it with a simple touch-event: clickObject -> write in Log "Object clicked'

For more help we need your code ...
B
5
S
1
Posts: 24
Reputation: 423

Post » Fri Jul 22, 2016 10:09 pm

Or the question is really:
How do i play a certain animation during dragging? Still a chance thats the thing, iffen you ask me.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to How do I....?

Who is online

Users browsing this forum: Phacanu, Yahoo [Bot] and 33 guests