Mplode's Recent Forum Activity

  • Post what? It is literally a single line Create Object at Player.X, Player.Y) That is all. It works until the screen scrolls then for unknown reasons it no longer creates the object at the Player.X but at like Player.X + amount screen has scrolled

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • System Instance Create at Player.X and Player.Y works properly until you scroll away from the original area.

    The game window is 640x480. Once you go further than 320 and the screen scrolls with the player, the whip you create starts to get created further and further to the right of the player based on how far you have scrolled away from the starting point. So, say you scroll to 336, the whip is created to the player but an additional 16 pixels away.

    I've tried pinning.

    I've tried to continually setting the whip's position to the player's position.

    Nothing works. I've opened examples of other simple things with scrolling and my code is no different than theirs, yet my whip continues to get created further from the player the more you scroll away from the original starting location.

    Kinda irritating as literally every other game engine(RAD and APIs), all I have to do is create an instance at the player's x and y. Nothing else. Don't understand why it works fine until the screen scrolls. It is created at the same layer as the player. The origins are correct. I just don't get it.

Mplode's avatar

Mplode

Member since 20 Feb, 2017

None one is following Mplode yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies