Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Wall Detection & Overworld
- The_Game_
- Scratcher
1000+ posts
Wall Detection & Overworld
Does anyone know how to add wall detection to certain sprites and how do I make an overworld?
Fresh bread…
Cool Roleplay Thing
Nyx is in your floorboards.
The ST does a really good job and try their absolute best.
I am a GameMaker dev who used to use Scratch. I'm still on here but won’t be making large projects.
I am going to forever be remembered as a cat boy on the forums aren’t I?
Here is art things
[img]https://u.cubeupload.com/The_Game_/NymphConfused.png[/img]
[img]https://u.cubeupload.com/The_Game_/NymphHappy.png[/img]
[img]https://u.cubeupload.com/The_Game_/Character.png[/img]
;
- Jareddddddd
- Scratcher
1000+ posts
Wall Detection & Overworld
please be more specific. As for the wall detection, there are 2 (common) types, platformer and top-down detection. For platformers, i would use a preexisting engine, but for the top-down one, its pretty simple.
if <key [up arrow v] pressed?> thenas for the overworld, i think you're referring to minecraft. Well, this can be manually made or procedurally generated. See this project for procedural generation (not mine) - https://scratch.mit.edu/projects/42673114/
change y by (5)
if <touching [wall v] ?> then
change y by (-5)
end
end
(repeat for all directions)
- The_Game_
- Scratcher
1000+ posts
Wall Detection & Overworld
I was talking about top down and I was talking about a pre made world. please be more specific. As for the wall detection, there are 2 (common) types, platformer and top-down detection. For platformers, i would use a preexisting engine, but for the top-down one, its pretty simple.if <key [up arrow v] pressed?> thenas for the overworld, i think you're referring to minecraft. Well, this can be manually made or procedurally generated. See this project for procedural generation (not mine) - https://scratch.mit.edu/projects/42673114/
change y by (5)
if <touching [wall v] ?> then
change y by (-5)
end
end
(repeat for all directions)
Fresh bread…
Cool Roleplay Thing
Nyx is in your floorboards.
The ST does a really good job and try their absolute best.
I am a GameMaker dev who used to use Scratch. I'm still on here but won’t be making large projects.
I am going to forever be remembered as a cat boy on the forums aren’t I?
Here is art things
[img]https://u.cubeupload.com/The_Game_/NymphConfused.png[/img]
[img]https://u.cubeupload.com/The_Game_/NymphHappy.png[/img]
[img]https://u.cubeupload.com/The_Game_/Character.png[/img]
;
- Discussion Forums
- » Help with Scripts
- » Wall Detection & Overworld