Can i avoid an object...

Just started using Construct 2? Post your questions here

Post » Sun Jul 20, 2014 11:09 am

Hello,

Can i avoid an object leaving another object?

Thanks
B
18
S
2
G
1
Posts: 67
Reputation: 1,329

Post » Sun Jul 20, 2014 11:31 am

Do you mean stick together ?
use the pin behavior.
Image
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Sun Jul 20, 2014 12:52 pm

No i didnt mean that

i mean little object can move inside bigger object , but cant go outside it.

Also bigger object doesnt move.
B
18
S
2
G
1
Posts: 67
Reputation: 1,329

Post » Sun Jul 20, 2014 1:36 pm

You mean like this :
You do not have the required permissions to view the files attached to this post.
Image
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Sun Jul 20, 2014 2:28 pm

Yes, but it works for platform behaviour, i want it with drag and drop behaviour. With drag and drop, you can drag it outside the box :(
B
18
S
2
G
1
Posts: 67
Reputation: 1,329

Post » Sun Jul 20, 2014 6:44 pm

you can make the drag and drop behaviour drop the object..

Make invisible squares arond the object and on collision drop..
Or have it done by an equation, maximum distance from center or have it react to the bounding box..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jul 20, 2014 8:57 pm

Okay i'll try thank you.
B
18
S
2
G
1
Posts: 67
Reputation: 1,329


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests