Discuss Scratch

readible
Scratcher
86 posts

Toast infinite ∞ platformer - reworked - pixel art - mobile support

Ever wanted to became a pixel toast, making your way through an endless pixel kitchen?
Well, here I'd just like to show you my first proper project here; ‘Toast ∞ platformer’.

It's a simple but fun pixel art game that times you as you try to avoid the kitchen obstacles.
There's optional music, and I'm hoping to add cloud highscores once I'm a scratcher.

Just see for yourself. Feedback is appreciated. https://scratch.mit.edu/projects/320751547/

There are 3 randomly looping levels (as of 14/7), but I'm working steadily on new designs.
Thanks

Last edited by readible (July 14, 2019 18:41:55)

B_E_H_E_M_O_T_H
Scratcher
76 posts

Toast infinite ∞ platformer - reworked - pixel art - mobile support

The problem with the fridge is that you're using color as a collision mechanism. It would be much better to use a hitbox, rather than color, because then it wouldn't matter what color the toast was touching, so long as they were touching the thing they should've collided with.
readible
Scratcher
86 posts

Toast infinite ∞ platformer - reworked - pixel art - mobile support

B_E_H_E_M_O_T_H wrote:

The problem with the fridge is that you're using color as a collision mechanism. It would be much better to use a hitbox, rather than color, because then it wouldn't matter what color the toast was touching, so long as they were touching the thing they should've collided with.

And I was right about to ask for help on forums on wall jump…
Could you possibly remix my code with the hitbox thing? If it fixes the game…

You could just do ‘if touching arrow <>’ and I put in mobile code in afterwards.
It'd be amazing if you did
readible
Scratcher
86 posts

Toast infinite ∞ platformer - reworked - pixel art - mobile support

Edit- How does hitbox work anyway? I heard of it… I presume the sprite won't fall through anything?
readible
Scratcher
86 posts

Toast infinite ∞ platformer - reworked - pixel art - mobile support

bumb, looking for help making my game support mobile jump^^
B_E_H_E_M_O_T_H
Scratcher
76 posts

Toast infinite ∞ platformer - reworked - pixel art - mobile support

readible wrote:

Edit- How does hitbox work anyway? I heard of it… I presume the sprite won't fall through anything?

Basically, rather than using the actual sprite graphic as a way to detect collision, a simple box is used for that purpose, because you can't really get snagged on a corner using a box. Here's an example of a possible hitbox for mario.



When mario hits something that he should collide with, it's not the sprite, but the green box, that is colliding.

I will remix your project and add it. That should fix the “moving through the fridge” bug. And I'll add mobile support.
readible
Scratcher
86 posts

Toast infinite ∞ platformer - reworked - pixel art - mobile support

B_E_H_E_M_O_T_H wrote:

readible wrote:

Edit- How does hitbox work anyway? I heard of it… I presume the sprite won't fall through anything?

When mario hits something that he should collide with, it's not the sprite, but the green box, that is colliding.

I will remix your project and add it. That should fix the “moving through the fridge” bug. And I'll add mobile support.

Ah, this. Ok, thanks, I'll probably credit you!
By the way, is the game and concept nice overall..? Like, anything to improve? ^-^

Last edited by readible (July 16, 2019 18:25:07)

StrangeMagic32
Scratcher
1000+ posts

Toast infinite ∞ platformer - reworked - pixel art - mobile support

adding a scrolling background would be cool, I have some code that you can use right here: https://scratch.mit.edu/projects/321204605/editor
readible
Scratcher
86 posts

Toast infinite ∞ platformer - reworked - pixel art - mobile support

StrangeMagic32 wrote:

adding a scrolling background would be cool, I have some code that you can use right here: https://scratch.mit.edu/projects/321204605/editor

Thanks so much for this! Implemented into proper version,
plus I also used the clones for the cupboards instead of 2 sprites

You're credited in the description, if you havn't seen already, welp.
StrangeMagic32
Scratcher
1000+ posts

Toast infinite ∞ platformer - reworked - pixel art - mobile support

readible wrote:

StrangeMagic32 wrote:

adding a scrolling background would be cool, I have some code that you can use right here: https://scratch.mit.edu/projects/321204605/editor

Thanks so much for this! Implemented into proper version,
plus I also used the clones for the cupboards instead of 2 sprites

You're credited in the description, if you havn't seen already, welp.
nice, also gotta say one of my favorites I've seen in a long time

Last edited by StrangeMagic32 (July 16, 2019 19:44:40)

readible
Scratcher
86 posts

Toast infinite ∞ platformer - reworked - pixel art - mobile support

StrangeMagic32 wrote:

readible wrote:

StrangeMagic32 wrote:

adding a scrolling background would be cool, I have some code that you can use right here: https://scratch.mit.edu/projects/321204605/editor

Thanks so much for this! Implemented into proper version,
plus I also used the clones for the cupboards instead of 2 sprites

You're credited in the description, if you havn't seen already, welp.
nice, also gotta say one of my favorites I've seen in a long time

o:
readible
Scratcher
86 posts

Toast infinite ∞ platformer - reworked - pixel art - mobile support

B_E_H_E_M_O_T_H wrote:

readible wrote:

Edit- How does hitbox work anyway? I heard of it… I presume the sprite won't fall through anything?

Basically, rather than using the actual sprite graphic as a way to detect collision, a simple box is used for that purpose, because you can't really get snagged on a corner using a box. Here's an example of a possible hitbox for mario.

When mario hits something that he should collide with, it's not the sprite, but the green box, that is colliding.

I will remix your project and add it. That should fix the “moving through the fridge” bug. And I'll add mobile support.

Just checking, are you going to do the hitbox walljump remix?
Because that'd be awesome, if you know how, which I assume you do…
readible
Scratcher
86 posts

Toast infinite ∞ platformer - reworked - pixel art - mobile support

SOLVED BY WORKAROUND!
And reporting this old thread for closing.

Powered by DjangoBB