Help with Scrolling HUD

ocindahouseocindahouse Member Posts: 24
edited November -1 in Working with GS (Mac)
I have my HUD stay still when my game scrolls to the right. My character collects coins, when the actor touches the coins, they move, leaving particles, to the coin image I have on my hud. It works when i'm not outside the regular 320x480 camera, if I touch the coin farther on the right side, the coin will move to the original position of the coin image on the HUD inside the 320x480 space. How can I make it so that wherever the coin image is at the moment the collision occurs, this new coin will move to the right position and not all the way at the beginning of the scene?

Thank you in advance

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You need to make an offset attribute that tells the coin to move to the x position of the hud you want it to go to Plus the Camera.Origin.X value.

    Checkout the cook book videos and search for offset and it should give you a good idea of what you need to setup.
Sign In or Register to comment.