Discuss Scratch
- windows11_fan300
-
37 posts
Help With Coding!
So I Need To Make Gravity Work On My Game. I Also Need Help Changing My Game From A Sprite-Based Game To A Tile-Based Game.
Any Help Would Be Appreciated!
Game Link: https://turbowarp.org/1213881591/editor (It Wont Work On Scratch And It's Buggy)
Any Help Would Be Appreciated!
Game Link: https://turbowarp.org/1213881591/editor (It Wont Work On Scratch And It's Buggy)
- PlatoHero_
-
500+ posts
Help With Coding!
Greetings. Your project isn't shared, so we can't have access to it. Please share it in your main or an alternate account
- windows11_fan300
-
37 posts
Help With Coding!
Ok Doing It Right Now! Greetings. Your project isn't shared, so we can't have access to it. Please share it in your main or an alternate account
- windows11_fan300
-
37 posts
Help With Coding!
It's Shared Now!Ok Doing It Right Now! Greetings. Your project isn't shared, so we can't have access to it. Please share it in your main or an alternate account
Last edited by windows11_fan300 (Sept. 6, 2025 18:22:14)
- windows11_fan300
-
37 posts
Help With Coding!
Are you gonna help? Make sure you save the file and share it!
Last edited by windows11_fan300 (Sept. 6, 2025 18:23:15)
- PlatoHero_
-
500+ posts
Help With Coding!
What do you mean by “tile-based”? Do you want the floor to consist of tiles? I Also Need Help Changing My Game From A Sprite-Based Game To A Tile-Based Game.
- Jlerpy
-
1000+ posts
Help With Coding!
For your gravity issue, in playerblock's “Touch Ground”, replace “repeat until not touching ground” with “if touching floor”.
- windows11_fan300
-
37 posts
Help With Coding!
Like Griffpatch’s Mario tutorial series!What do you mean by “tile-based”? Do you want the floor to consist of tiles? I Also Need Help Changing My Game From A Sprite-Based Game To A Tile-Based Game.
- PlatoHero_
-
500+ posts
Help With Coding!
The gravity issue is very simple to fix, just replace theLike Griffpatch’s Mario tutorial series!What do you mean by “tile-based”? Do you want the floor to consist of tiles? I Also Need Help Changing My Game From A Sprite-Based Game To A Tile-Based Game.
<touching (Ground v) ?>block with a
<touching (floor v) ?>
Making it tile based is most definitely the complicated part. You say that you want it to be like Griffpatch's super mario tutorial series. In it, Griffpatch creates an elaborate project that allows creating, editing, and playing scrolling super mario levels that consist of tiles. Do you want to create a scrolling tile-based platformer?
- AndPherbCodes
-
100+ posts
Help With Coding!
It's in turbowarp. he can't share it. Also, he did include a link. Greetings. Your project isn't shared, so we can't have access to it. Please share it in your main or an alternate account
Last edited by AndPherbCodes (Sept. 7, 2025 20:26:44)
- PlatoHero_
-
500+ posts
Help With Coding!
Simply put, the way turbowarp works is it takes the code from a project and executes it. Turbowarp links specify which project to take the code from. However, Turbowarp can't take the code from an unshared project. And links that ask turbowarp to take code from an unshared project won't work, specifically because it is unshared. Once windows11_fan300 shared the project, the link worked normally.It's in turbowarp. he can't share it. Also, he did include a link. Greetings. Your project isn't shared, so we can't have access to it. Please share it in your main or an alternate account
- windows11_fan300
-
37 posts
Help With Coding!
Yes I definitely want to make it a tile-based game so that I can make modding toolsets for itThe gravity issue is very simple to fix, just replace theLike Griffpatch’s Mario tutorial series!What do you mean by “tile-based”? Do you want the floor to consist of tiles? I Also Need Help Changing My Game From A Sprite-Based Game To A Tile-Based Game.<touching (Ground v) ?>block with a<touching (floor v) ?>
Making it tile based is most definitely the complicated part. You say that you want it to be like Griffpatch's super mario tutorial series. In it, Griffpatch creates an elaborate project that allows creating, editing, and playing scrolling super mario levels that consist of tiles. Do you want to create a scrolling tile-based platformer?
Last edited by windows11_fan300 (Sept. 10, 2025 23:06:39)
- PlatoHero_
-
500+ posts
Help With Coding!
Then, you could just follow Griffpatch's Mario tutorial series. It includes instructions on creating a scrolling tile-based platformer, and it also explains what each thing does, so you can change things according to what seems fit for you.Yes I definitely want to make it a tile-based game so that I can make modding toolsets for itThe gravity issue is very simple to fix, just replace theLike Griffpatch’s Mario tutorial series!What do you mean by “tile-based”? Do you want the floor to consist of tiles? I Also Need Help Changing My Game From A Sprite-Based Game To A Tile-Based Game.<touching (Ground v) ?>block with a<touching (floor v) ?>
Making it tile based is most definitely the complicated part. You say that you want it to be like Griffpatch's super mario tutorial series. In it, Griffpatch creates an elaborate project that allows creating, editing, and playing scrolling super mario levels that consist of tiles. Do you want to create a scrolling tile-based platformer?
- windows11_fan300
-
37 posts
Help With Coding!
But I don’t want to rewrite so much code!Then, you could just follow Griffpatch's Mario tutorial series. It includes instructions on creating a scrolling tile-based platformer, and it also explains what each thing does, so you can change things according to what seems fit for you.Yes I definitely want to make it a tile-based game so that I can make modding toolsets for itThe gravity issue is very simple to fix, just replace theLike Griffpatch’s Mario tutorial series!What do you mean by “tile-based”? Do you want the floor to consist of tiles? I Also Need Help Changing My Game From A Sprite-Based Game To A Tile-Based Game.<touching (Ground v) ?>block with a<touching (floor v) ?>
Making it tile based is most definitely the complicated part. You say that you want it to be like Griffpatch's super mario tutorial series. In it, Griffpatch creates an elaborate project that allows creating, editing, and playing scrolling super mario levels that consist of tiles. Do you want to create a scrolling tile-based platformer?
- PlatoHero_
-
500+ posts
Help With Coding!
Sorry, but I am too busy with studies to do it myself.But I don’t want to rewrite so much code!Then, you could just follow Griffpatch's Mario tutorial series. It includes instructions on creating a scrolling tile-based platformer, and it also explains what each thing does, so you can change things according to what seems fit for you.Yes I definitely want to make it a tile-based game so that I can make modding toolsets for itThe gravity issue is very simple to fix, just replace theLike Griffpatch’s Mario tutorial series!What do you mean by “tile-based”? Do you want the floor to consist of tiles? I Also Need Help Changing My Game From A Sprite-Based Game To A Tile-Based Game.<touching (Ground v) ?>block with a<touching (floor v) ?>
Making it tile based is most definitely the complicated part. You say that you want it to be like Griffpatch's super mario tutorial series. In it, Griffpatch creates an elaborate project that allows creating, editing, and playing scrolling super mario levels that consist of tiles. Do you want to create a scrolling tile-based platformer?
- s714655
-
100+ posts
Help With Coding!
If you want to make a tile based scrolling platformer without writing the code, then how will you make it? I have some experience with these myself so I can help if you need help with specific parts.
- windows11_fan300
-
37 posts
Help With Coding!
I said “rewrite” not “write” but you can help me if you want! If you want to make a tile based scrolling platformer without writing the code, then how will you make it? I have some experience with these myself so I can help if you need help with specific parts.
- s714655
-
100+ posts
Help With Coding!
But I don’t want to rewrite so much code!
Rewriting code is easier than writing code, so when you say the word “but” it sounds like you want somebody to do it for you. A good place to start if you want to write your own engine though is rendering tiles from a list and playing with it using logic to possibly build a map, but I already have some maths for you. I cant help with rewriting for reasons I cant disclose. Anyways, some basic logic; Loop through the different tiles that could be displayed on screen (repeat ciel(360 / tile-size) + 1) and (repeat ciel(480 / tile-size) + 1) with an x and y counter for the tile on the screen. Convert these x and y to map space with newx to floor(scrollx / tile-size) + x and newy to floor(scrolly / tile-size) + y. You can find the index of these in the 1d list with index = newx + newy * mapwidth. If each item in your list is a number representing the costume you can set costume to list and x-position to (newx * tile-size) - scrollx and y-position to (newy * tile-size) - scrolly. Collisions are similar in method if your using pen stamps to render; just swap the repeats with 3 each, swap the scrollx and scrolly with playerx and playery and instead of the rendering logic use a simple box bounding check with numbers for the players hitbox width and height. x1 + width1 > x2 - width2 && x1 - width1 < x2 + width2 && y1 + height1 > y2 - height2 && y1 - height1 < y2 + height2 you can swap the x1 and y1 for player positions and the width1 and height1 to the hitbox width / 2 and height / 2, and swap the x2 and y2 with the positions of the tile and the width2 and height2 both to tile-size / 2. though that's just for checking the collision you can move out by using velocity edge snapping (you use the direction of movement to snap to one edge of the tile) or step calculating (go frame by frame and move out if collision is detected). Of course this is just an overview and may not be clear.I said “rewrite” not “write” but you can help me if you want! snip