Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » RPG Sprite Collision Help
- Extromity
-
Scratcher
12 posts
RPG Sprite Collision Help
HI! I'm making a scrolling MOTHER 1 engine, and the hitbox won't move after it touches the walls. I've tried several methods, but none of them worked. Any way to fix? 

- DragonPlusMaster
-
Scratcher
100+ posts
RPG Sprite Collision Help
I know that griffpatch_tutor has a tutorial on platformers. In it, he describes having a costume named “Hitbox” on the sprite, and have a forever loops that looks something like this:
I can't remember if the hitbox is the one at the bottom or top of the loop. You would have to check out his project, for more details.
forever
switch costume to (animate)
code
switch costume to [hitbox v]
end
I can't remember if the hitbox is the one at the bottom or top of the loop. You would have to check out his project, for more details.
- NMario84
-
Scratcher
1000+ posts
RPG Sprite Collision Help
Generally to my knowledge (and from experience), hitboxes, movement and wall collisions come first. THEN all the graphic/sprite assets of a game are applied after all of the collision checks.
Though from what I've seen, everyone has their own way of coding such projects, so it depends how you want to set up your game.
Though from what I've seen, everyone has their own way of coding such projects, so it depends how you want to set up your game.

- Extromity
-
Scratcher
12 posts
RPG Sprite Collision Help
@NMario84 It's based off EarthBound Beginnings (MOTHER 1) on the NES, and I want to keep it as faithful to the original as possible. 

- ametrine_
-
Scratcher
1000+ posts
RPG Sprite Collision Help
@NMario84 It's based off EarthBound Beginnings (MOTHER 1) on the NES, and I want to keep it as faithful to the original as possible.to reply to people on the forums, you can press the Quote button. it's on the bottom right of every post.
- Extromity
-
Scratcher
12 posts
RPG Sprite Collision Help
@NMario84 It's based off EarthBound Beginnings (MOTHER 1) on the NES, and I want to keep it as faithful to the original as possible.to reply to people on the forums, you can press the Quote button. it's on the bottom right of every post.
Thanks. I'm new to forums
- Sk8rz4
-
Scratcher
1 post
RPG Sprite Collision Help
y
when green flag clicked
forever
if <> then
else
end
end
- Discussion Forums
- » Help with Scripts
-
» RPG Sprite Collision Help
