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

#1 2012-02-09 18:13:54

TakeItEasy
Scratcher
Registered: 2012-02-08
Posts: 34

Need help with left-right hitboxes

I am making a non-scrolling platformer where you can travel quite fast. The player has four hit-detector sprites for up, down, left, and right. The ground is registered as a sprite superimposed over the stage background (because colour sensing makes spriting awkward). But the player is not stopped easily by big nasty walls, and can usually go through them after my scripts debate with themselves a bit. How can I fix this? (Project in question will be posted soon)

Offline

 

#2 2012-02-09 20:15:56

lunarman42
Scratcher
Registered: 2012-02-09
Posts: 100+

Re: Need help with left-right hitboxes

Have you made it so the sprite bounces off the desired object depending on which sensor is triggered?


http://mag.racked.eu/cimage/i5009.2/lunarman42/Scratchin.39.+away/mca.png

Offline

 

#3 2012-02-10 00:15:05

TakeItEasy
Scratcher
Registered: 2012-02-08
Posts: 34

Re: Need help with left-right hitboxes

lunarman42 wrote:

Have you made it so the sprite bounces off the desired object depending on which sensor is triggered?

Yes, but it still phases through (Sometimes it gets confused and judders left and right). It moves a bit quickly, although I managed to remove that horrible go-up-to-a-wall-and-climb-it bug.

Offline

 

#4 2012-02-10 06:07:50

lunarman42
Scratcher
Registered: 2012-02-09
Posts: 100+

Re: Need help with left-right hitboxes

Is this issue in the project Perihelion (I think) quest? The movement is very glitchy and choppy. I recommend that you seek "expert" advice, because I have not made a perfect platformer myself.


http://mag.racked.eu/cimage/i5009.2/lunarman42/Scratchin.39.+away/mca.png

Offline

 

#5 2012-02-10 11:20:17

TakeItEasy
Scratcher
Registered: 2012-02-08
Posts: 34

Re: Need help with left-right hitboxes

lunarman42 wrote:

Is this issue in the project Perihelion (I think) quest? The movement is very glitchy and choppy. I recommend that you seek "expert" advice, because I have not made a perfect platformer myself.

Yeah, it's that one. I tried basing it off some other projects but it doesn't work as well.

Offline

 

Board footer