I'm making a scrolling game where, in order to win, you must place objects on the ground. How I was planning to do this, was that you press the number of what you want and it would appear at your feet. I'd like it to stay on the same point in the map, regardless of where you move. I figure it might be something like the placing of terrains, but I don't know how to tell it to go to the x position of where I pressed the number. Any help?
Offline
14darkcats wrote:
I'm making a scrolling game where, in order to win, you must place objects on the ground. How I was planning to do this, was that you press the number of what you want and it would appear at your feet. I'd like it to stay on the same point in the map, regardless of where you move. I figure it might be something like the placing of terrains, but I don't know how to tell it to go to the x position of where I pressed the number. Any help?
Usually when dealing with scrolling, to have something at the same position as the player, you set it's position to the opposite (times -1) of the scroll variable.
Offline