Set position to issue with solids.

Get help using Construct 2

Post » Fri May 25, 2012 3:03 pm

Hey guys checked the forum a bit but couldn't find the solution.

My main object has several objects attached to it via "set position to"
Now the problem is when I push up against a solid and/or edge of the screen.

problem is the attached objects get offset, in the position my main object is getting pushed into the solids.

is their any way to reduce, or stop that?
Mogster2012-05-25 15:14:00
B
3
G
3
Posts: 20
Reputation: 1,040

Post » Fri May 25, 2012 3:46 pm

What kind of behaviour do you have on the attached objects?
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Fri May 25, 2012 4:07 pm

no behaviours on the attached objects at all accept that they change frame number when a key is pressed.

In CC I used the same thing but had all my attached objects in a containers.

atm I have no clue how that either. I can send a screen if you need to see whats happening.
B
3
G
3
Posts: 20
Reputation: 1,040

Post » Fri May 25, 2012 4:19 pm

No behaviours? Hmm, yeah it would probably help with a screenshot or the .capx.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Fri May 25, 2012 4:25 pm

this is a logical problem. 2 solutions:

1. use physics instead of solids

2. safe pre-position of object in temp value, and reset after collision positive.

best regards :)
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Fri May 25, 2012 4:30 pm

You can see by the flames mainly how they get offset from their positions.




Mogster2012-05-25 16:32:36
B
3
G
3
Posts: 20
Reputation: 1,040

Post » Fri May 25, 2012 4:37 pm

I only get this problem when using the "Bound to Layout" behaviour. What if you put a solid wall just outside the layout, so that the player collides with that instead of being affected by "Bound to Layout"?
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Fri May 25, 2012 4:44 pm

Sir's I thank you very much seems like the "bound to layout" was the issue.

Xeed, Nimtrix thanks a bunch.

Solved.
B
3
G
3
Posts: 20
Reputation: 1,040


Return to How do I....?

Who is online

Users browsing this forum: imnotspecial, tomi71, totoe, Yahoo [Bot] and 15 guests