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

#1 2012-07-05 15:00:30

notaloser
Scratcher
Registered: 2011-12-06
Posts: 100+

Walking through walls? Please help me fix it

So, here a link to the project: (In progress) http://scratch.mit.edu/projects/notaloser/2656298

So the problem is that my guy is walking through walls....
please download it and fix it or tell me to add a script to it, im using this jumping script
http://wiki.scratch.mit.edu/wiki/Jumping
(the last one)

So any ideas?

Dont Remix.


http://gifs.gifbin.com/1238409599_nom_nom.gifhttp://cdn3.lolzsquad.com/wp-content/uploads/2012/10/Come-here-I-want-to-tell-you-something.-.gif

Offline

 

#2 2012-07-05 17:19:58

SFollis
Scratcher
Registered: 2012-03-04
Posts: 76

Re: Walking through walls? Please help me fix it

create sprite "right detector" and sprite "left detector"
This would be the script for the right detector

when clicked
set
ghost
effect to
100
forever
wait until
touching color
broadcast
right hit!

when clicked
forever
go to
player

now the left detector:
when clicked
set
ghost
effect to
100
forever
wait until
touching color
broadcast
left hit!

when clicked
forever
go to
player

Then add these scripts to the player:
when I receive
right hit!
move
-3
steps

when I receive
left hit!
move
3
steps

Also allows wall jumping!  big_smile

Last edited by SFollis (2012-07-05 17:26:49)


http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=image&num=1 is a picture of my project http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=text&num=1 which has http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=views&num=1 views

Offline

 

#3 2012-07-06 05:00:17

notaloser
Scratcher
Registered: 2011-12-06
Posts: 100+

Re: Walking through walls? Please help me fix it

Thank You!


http://gifs.gifbin.com/1238409599_nom_nom.gifhttp://cdn3.lolzsquad.com/wp-content/uploads/2012/10/Come-here-I-want-to-tell-you-something.-.gif

Offline

 

#4 2012-07-06 12:18:30

SFollis
Scratcher
Registered: 2012-03-04
Posts: 76

Re: Walking through walls? Please help me fix it

your welcome.


http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=image&num=1 is a picture of my project http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=text&num=1 which has http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=views&num=1 views

Offline

 

Board footer