Player sprite keeps teleporting back after vehicle exit

0 favourites
  • 5 posts
From the Asset Store
Players follower. use it for anything which follows the player
  • Hi guys

    I've got an issue where I have followed a tutorial (which i've tweaked and added my own bits) for a player sprite getting into a car, being a ble to drive it with the camera following it, and then get out.

    Problem is when I get out my character teleports back to the point where I entered the vehicle... pretty strange as there is nothing to do with position or coordinates in my event menu.

    If anyone has any idea what could be causing this I would be very grateful, I will attach an image of my event page if it might help.

    Thanks very much!

  • EDIT: Player seems to not be being pinned to the car correctly.

  • Synchronic my solution to this problem was when entering the car was to destroy the player object and when leaving the car to spawn another one on an image point next to the car.

    Try this and see if it resolves your issues

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Synchronic my solution to this problem was when entering the car was to destroy the player object and when leaving the car to spawn another one on an image point next to the car.

    Try this and see if it resolves your issues

    Hi, thanks for the reply.

    I've seen that work around already, but this game is an RPG which will feature a player inventory etc... and apparently this causes the loss of any items attached to the player etc...

    I'm sure what is going wrong is that the player sprite is not pinning to the car when entering, and is only becoming invisible, so that when I leave the vehicle and the player becomes visible again, he is still in the same place as he started because he was never properly pinned to the car in the first place.

    Anyone have any thoughts/tips?

    Thanks

  • Ok I finally managed to get the player to spawn back outside the vehicle through some guesswork/trial and error... but now there are some wierd "physics" issues when I am in the vehicle, such as it stuttering, and seeming like it is colliding with stuff when there is nothing around it... and sometimes when I re-enter the vehicle it goes very very slowly...

    I am restart a new thread since my issue is different now.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)