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 gf clicked
set [ghost v] effect to [100]
forever
   wait until <touching color [#FFFFFF]>
   broadcast [right hit!]
end
when gf clicked
forever
   go to [player v]
end
now the left detector:
when gf clicked
set [ghost v] effect to [100]
forever
   wait until <touching color [#FFFFFF]>
   broadcast [left hit!]
end
when gf clicked
forever
   go to [player v]
end
Then add these scripts to the player:
when I receive [right hit! v]
move [-3] steps
when I receive [left hit! v]
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&amp;action=projects&amp;type=newest&amp;return=image&amp;num=1 is a picture of my project http://blocks.scratchr.org/API.php?user=SFollis&amp;action=projects&amp;type=newest&amp;return=text&amp;num=1 which has http://blocks.scratchr.org/API.php?user=SFollis&amp;action=projects&amp;type=newest&amp;return=views&amp;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&amp;action=projects&amp;type=newest&amp;return=image&amp;num=1 is a picture of my project http://blocks.scratchr.org/API.php?user=SFollis&amp;action=projects&amp;type=newest&amp;return=text&amp;num=1 which has http://blocks.scratchr.org/API.php?user=SFollis&amp;action=projects&amp;type=newest&amp;return=views&amp;num=1 views

Offline

 

Board footer