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

#1 2012-10-23 19:36:14

l0ve1y
Scratcher
Registered: 2011-08-27
Posts: 100+

Making a sprite stand on lines without it floating up?

Is there a way to make a sprite stand on lines without it floating up to the top of the line when it is touched from the bottom or sides? 'Cause I have a platform game where you collect Scratch blocks, and if you touch the Stop All block, then you lose. And I want my sprite to not float up to the top of the lines when it touches the sides or bottom of it. So... is there a way to do that? (The reason I'm asking is 'cause you can't jump over the Stop All blocks, or else the jump height would be so high that almost every time you jumped, you'd float to the top of a line.  tongue )


http://www.tagmybffs.com/upics/v2l4v5b78olj3x.png

Offline

 

#2 2012-10-23 19:53:29

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Re: Making a sprite stand on lines without it floating up?

You can put a dot on top of a sprite that follows the sprite everywhere and if that dot touches a line then it stops the sprite from traveling up the line.


http://blocks.scratchr.org/API.php?user=KrIsMa&action=onlineStatus&online=http://i49.tinypic.com/2pzic0m.png&offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

Board footer