Drag and drop objects

Get help using Construct 2

Post » Sat Aug 09, 2014 2:05 am

Probably a noob question here but,

im working on something where I have objects with drag and drop behaviors. They work great. But, they also do not collide with other solid objects. I don't want to be able to drag them over solid objects.

Thanks
B
4
S
1
G
1
Posts: 18
Reputation: 755

Post » Sat Aug 09, 2014 2:14 am

Put Solid behaviour on your solid objects, and also, e.g. Bullet or 8-direction behaviour (which use the Solid behaviour).

https://www.scirra.com/manual/104/solid

hint: if you had typed 'solid' in the Manual search page, you would have got the above link :)
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Sat Aug 09, 2014 2:19 am

Thanks, they do have the solid behaviors on them as well as does the drag and drop objects. But i'll try the other options. Thanks :)
B
4
S
1
G
1
Posts: 18
Reputation: 755

Post » Sat Aug 09, 2014 2:24 am

Drag and drop doesn't honour the solid behaviour..

From the link:

It affects the following behaviors:

8 Direction, which is blocked by Solids
Bullet, which can optionally bounce off Solids
Car, which bounces off Solids
Line-of-sight, which by default has line-of-sight obstructed by Solids
Platform, which can land on Solids. Platform cannot jump on to solids from underneath - for this, use the Jump-thru behavior.
Pathfinding, which by default uses solids as path obstacles.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Mon Aug 11, 2014 12:01 am

ahh i see thank you. I'll have to re work some stuff then
B
4
S
1
G
1
Posts: 18
Reputation: 755


Return to How do I....?

Who is online

Users browsing this forum: arvivlx2 and 8 guests