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

#1 2007-05-19 21:53:34

blacksheepk
Scratcher
Registered: 2007-05-19
Posts: 6

How do you make a sprite sit on top of something in the backround?

I can't figure out how to make a sprite sit on top of something in the backround. But i still want to be able to move it off of it. Like an rpg with a side view; if there is a ledge, i want to jump on top of it without falling through it.

Offline

 

#2 2007-05-20 00:58:22

Duncan
Scratcher
Registered: 2007-05-15
Posts: 47

Re: How do you make a sprite sit on top of something in the backround?

If the ledge is a single colour you could try the Sensing instruction for Touching Color with some form of If test

If Touching Color
- Do some stuff on the ledge
Else
- Only allow upwards movement

Otherwise you could use the Y coordinate to limit the movement.

Offline

 

#3 2008-12-05 19:20:25

oliverp
Scratcher
Registered: 2008-08-13
Posts: 2

Re: How do you make a sprite sit on top of something in the backround?

<move(Why don'y you make a commercial of scratch?  )steps>


This is honor....this is dignity...This....IS....SPAR--LIVERP!!!!!!  big_smile  now face my turkey blaster! mmmmm......http://scratch.mit.edu/projects/oliverp/1401416 BILL AND CLAUD

Offline

 

#4 2008-12-06 04:14:29

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: How do you make a sprite sit on top of something in the backround?

Check the "jetpack girl" demo that comes with sprite for the basics of standing on a platform.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

Board footer