Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Reid's White Cock

This is just a fun and easy code snippet you should try using in your game.
When Reid touchs his cock (event 1) it changes to a new event page running a parallel process and this script.
It sets the event's coordinates to be the same as the player's but the Y variable is offset to be over head.
This works for picking up pots and barrels too, but since this event uses a character sprite we can also set the event and player directional frames to be the same as well.
QVNPk3H.png



What is ._realX and ._realY?
It's a little deceiving. There is also a ._x and ._y property. If you were to change the ._x to match the player's you'd see the event's graphic appear over the player then slide back to the event's real position "._realX"
 
Last edited:

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top