Discuss Scratch

ZedProduction
Scratcher
20 posts

Platforming

So, I'm making a platformer and I need some help. I have no idea how to make collision scripts, so the sprite walks right through walls. Help!
(you can check it out on my profile page, its called "Save Them v.0.3
drmcw
Scratcher
1000+ posts

Platforming

Just need to incorporate the sensing blocks into your movment logic. If the walls are a colour then use if touching colour. If the walls are a sprite then you can use if touching sprite. So in the movement script put if touching colour or sprite then undo the last move.

Check out the sticky topics for other ideas.

Last edited by drmcw (June 25, 2013 19:30:45)


10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
ZedProduction
Scratcher
20 posts

Platforming

cool thanks
ZedProduction
Scratcher
20 posts

Platforming

How do you do this?
drmcw
Scratcher
1000+ posts

Platforming

Which bit? Have you looked at the links in the 2 sticky topics in this forum?

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?

Powered by DjangoBB