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

#1 2011-09-25 01:01:08

TheHiddenPost
New Scratcher
Registered: 2011-09-25
Posts: 2

_

Hi everyone, TheHiddenPost here and i need some help with scratch. How would you make a platformer game with sensing? I can make the movement but the sensing is hard. Can i have some help?

Offline

 

#2 2011-09-25 01:28:32

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: _

If you're having a terrain sprite, you could use the <touching [sprite]?> block maybe? You can also try the <touching color [ ]?> block if it's appropriate.


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2011-09-25 19:28:38

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: _

Ground sensing? The easiest way to do that is with a

https://lh4.googleusercontent.com/-N97HfwVimLI/ThaRWdN4ebI/AAAAAAAADXg/qrxmYa43G30/g%252520sprite.gif

script.

You have to set the touching colour boolean to your ground colour.

This script basically changes the sprites y position by whether or not your sprite is touching the ground.  smile


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#4 2011-09-25 19:31:18

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: _

Offline

 

#5 2011-09-25 20:18:25

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: _

Why are you posting an empty post?

I don't get it...

Offline

 

#6 2011-09-25 20:22:59

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: _

kayybee wrote:

Why are you posting an empty post?

I don't get it...

Highlight it.  tongue


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#7 2011-09-25 20:57:57

KyleK7
Scratcher
Registered: 2011-06-14
Posts: 500+

Re: _

TheHiddenPost wrote:

Hi everyone, TheHiddenPost here and i need some help with scratch. How would you make a platformer game with sensing? I can make the movement but the sensing is hard. Can i have some help?

HAHAHA! Decoded!

Last edited by KyleK7 (2011-09-25 20:58:17)


http://i46.tinypic.com/zwxnhh.gif

Offline

 

Board footer