Glitch in Platformer Teleporting

Get help using Construct 2

Post » Wed Sep 25, 2013 9:35 pm

Hi,

I have a small project where when the player falls off a cliff, is teleported back to where the player started.

After the teleport happens, the player sprite is gittery / glitchy and cannot be controlled. After maybe a second then control and behavior goes back to normal.

Anyone have any ideas what is going on? I've included an example project showing the behavior.

BTW. I did read in the manual for the Solid behavior that something like this can happen if the teleport happens inside the Solid object. But in my case I am teleporting the player above the solid object.

I've tried this on IE and Chrome. The gitteriness seems to be more noticeable on Chrome.

https://dl.dropboxusercontent.com/u/43473061/teleporting_issue.capx

Thank you!!!!
Ruth
B
10
S
4
G
1
Posts: 10
Reputation: 997

Post » Wed Sep 25, 2013 9:47 pm

Take out the Wait and it's fine. Set the Y check for the Y co-ords you want instead of waiting 1 second.
B
47
S
18
G
84
Posts: 2,271
Reputation: 49,796

Post » Wed Sep 25, 2013 10:36 pm

Thanks, plinkie.

I didn't think that was part of the problem.

I'm hoping to have a momentary delay before I show that the player is back. How can I do this without introducing odd behavior? Set it to invisible, then wait a second, and then set back to visible?
B
10
S
4
G
1
Posts: 10
Reputation: 997

Post » Wed Sep 25, 2013 10:39 pm

My idea seems to work. Sorry for not trying it beforehand but maybe this will be helpful to someone else. Thanks again!
B
10
S
4
G
1
Posts: 10
Reputation: 997


Return to How do I....?

Who is online

Users browsing this forum: dop2000, Yahoo [Bot] and 10 guests