stuck in solid objects?

Get help using Construct 2

Post » Tue Apr 29, 2014 7:07 am

My enemies have platform behavior and they have a mode where sometimes they change size (height or width or both), and when they change size and the new size overlaps a solid object, they became stuck in the solid object.

How do I fix this without removing the "changing size" feature?
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Tue Apr 29, 2014 9:48 am

when you change size, you could also try to set their x to self.x+1 or some value, which would move them inperceptably higher. They will fall back to place anyway. I hope this helps.
B
18
S
4
G
1
Posts: 332
Reputation: 3,149

Post » Tue Apr 29, 2014 10:05 am

You could try something like...

While Changing Size -- Set Sprite.X to (Sprite.Height / 2) + Variable 1.

Variable 1 would be based on where the enemy is relation to something that never changes. Like the floor for example or something else.
B
56
S
15
G
13
Posts: 826
Reputation: 17,705

Post » Tue Apr 29, 2014 11:29 am

not sure how to do your ideas, guys. This problem arises in situations I have "stairs" kinds of floors, meaning I have different floor object instances at different heights. The changing of size happens in air, so as soon as enemy overlaps any floor object, it gets stuck there forever (since my events are supposed to work when the enemy falls on floor)
B
16
S
7
Posts: 301
Reputation: 2,726


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests