when logging X Y cords, Character starts off up in the air before falling down

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

  • Guten tag again and its been a while! I've started game dev again and I have a problem.

    So ive been making this Side scrolling adventure game, I followed this one Post on how to Change rooms for your game (EX. you go into one room and you come out in the same position) and one tip was to have a global value log your X Y Cord.
    However when i start the frame, my character starts up in the air then falls back down to the spawn point.

    Please login to see this attachment.

  • It's probably because the character is created up in the air and then moved to the correct position.

    You can solve this in two ways:

    1. Change the setting to make the character invisible on start, and then make it visible in your start of frame event after you've moved it to the right position.

    2. Don't automatically create the character (i.e. place it in your frame), create it at the correct coordinates at the start of frame.

    Casual games: Please login to see this link.

  • When you say 'at the start of the frame' do you mean the first time you launch the game, or every time you switch frames?

    If it's just at the start then it's likely that your "Ex" and "Why" values are both set to 0 - so the event that's meant to reposition the player does it at the beginning while the variables haven't changed. You could

    - set the values in the editor to the original X/Y coordinates of the player
    - OR add a condition so that the reposition doesn't happening if "Ex" and "Why" are both equal to 0

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!