This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-08-02 11:22:31

14darkcats
Scratcher
Registered: 2012-05-23
Posts: 12

Placing objects in a scrolling game.

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?


http://i48.tinypic.com/2dwb66g.jpg
maybe

Offline

 

#2 2012-08-02 13:00:12

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Placing objects in a scrolling game.

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.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

Board footer