Problems with water
I tried to make the water like meowys's adventure by @mrLman and just don't worked, i don't know why but don't worked so plis HELP ME
Link Of My Game: https://microstudio.io/rianstar/joyultraadventure/
Thanks For The Help.
I tried to make the water like meowys's adventure by @mrLman and just don't worked, i don't know why but don't worked so plis HELP ME
Link Of My Game: https://microstudio.io/rianstar/joyultraadventure/
Thanks For The Help.
Bruh, the solution is EXTREMELY simple. First off, you just blindly copy & pasted code, without even THINKING that you need to set up or change certain things (Asides from some camera stuff maybe, I have to credit that at least).
First off, you do not have an object called level
, meaning that level.number
is here 0. To fix this issue, you need to change the sprite name in the screen.drawMap
functions into "water_1a"
, that it refers to actual maps, which you do not have. You can of course also create a level
object, to provide this specific variable for you.
Also, the water will of course not show up, if you do not have maps with the correct name. Here, you do not have them at all. Hit the Tab "Maps", then the plus, and make it a map that is wide enough to cover your whole level and tall enough so the player won't see the lower edge. I looked at what the original game had for water, and it's pretty much this. The top row is the waves of the water, the rest is the color square below.
I even give you a small hint: You can create tilesets in microstudio. You just need a sheet where all tiles are ordered in a neat grid, and if you select that sheet in the map editor, you can pick the induvidual tiles. With this feature, you can have the ground and water in one image. Although I would recommend keeping animated and static tiles in seperate sheets.
Sidenote: I will not be providing sample code, as it's 1AM and this just showed that OP just copy pastes code without making all necessary changes, resulting in a project where the code DOES work, but its simply lacking the assets to show. This is something that OP should attempt to figure out on his own, it's really fairly easy.