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

#1 2012-07-24 13:22:47

Brett239
Scratcher
Registered: 2010-06-22
Posts: 10

Collision Box Dilemma

I'm making a game and when The Player touches a wall he bounces back(like he should) but after that he can go through the wall. I took away the ghost effect from the collision box and i found out that, after the player touches the wall, the collision box bounces back with him. The player can move after that, but the collision box can't! Can anyone give me some help?
< sad


When life gives you lemons, it better give you water and sugar too, or else your lemonade's gonna suck -Brett239

Offline

 

#2 2012-07-27 06:25:17

Maki-Tak
Scratcher
Registered: 2008-03-10
Posts: 100+

Re: Collision Box Dilemma

If the collision box is always set to be at the location of the player (or vice versa), that shouldn't actually happen...


http://i.cubeupload.com/zZE0XJ.png

Offline

 

#3 2012-07-28 04:38:17

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Collision Box Dilemma

Brett239 wrote:

I'm making a game and when The Player touches a wall he bounces back(like he should) but after that he can go through the wall. I took away the ghost effect from the collision box and i found out that, after the player touches the wall, the collision box bounces back with him. The player can move after that, but the collision box can't! Can anyone give me some help?
< sad

Try using:

when gf clicked
hide
instead of

when gf clicked
set [ghost v] effect to (0)


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

Board footer