Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Platforming
- 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
(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.
Check out the sticky topics for other ideas.
Last edited by drmcw (June 25, 2013 19:30:45)
- drmcw
- Scratcher
1000+ posts
Platforming
Which bit? Have you looked at the links in the 2 sticky topics in this forum?
- Discussion Forums
- » Help with Scripts
- » Platforming