I’m trying to make a rpg type game but I’m use to game engines where you can just click a check box to add scrolling, please help!!! Also me got small brain
so what game engine are u using
@Sharxxy I’m using wick editor for this game, but if you where wondering what game engine i usually use, I use godot.
okie cuz i use godot too but I don’t know what programming language wick editor is using
Wick editor uses js
okay I currently learning that in my school
Please someone help me :(
What you mean?
I need help with making a top down game that scrolls
Scrolls?..
Do you know how the player moves around a world in a rpg, that is what scrolling is.
https://www.youtube.com/watch?v=y4a3znISOQU&t=164s
i remembered this tutorial … keep in mind that in this tutorial to change the character’s hit box is using version 1.19.4 and it can only be changed in this version, once i tried to use this version and i noticed that the code works differently, but if you follow the tutorial it should be fine … plus since there is no possibility to add tilesetmap you have to add the tiles via code
That’s not what im looking for, but thanks for trying to help
Perhaps you can look up JavaScript tutorials?
If by “scrolling” you mean the camera follows the player, then you can add these two lines of code at the end of a player’s update script to make the project view follow it (without needing a vcam)
this.project.pan.x = -this.x+project.width /2;
this.project.pan.y = -this.y+project.height/2;
I also went ahead and created my own top down collision system since I didn’t find many good templates on the forums, take a look at this and let me know if it’s what you were looking for:
top down collision system.wick (4.1 KB)
ofc no art since this is just a template.
Let me know how I can change this to make it fit what you were looking for.
Collision System
I’m kinda proud of how perfect and short I was able to make the collision system, it’s all in less than 30 lines. It works by calculating the distance the player could move before touching the closest edge of each wall and making sure the speed never goes over that distance. It’s a little more complicated than that, if you’re interested I can explain it in more details, but really all you need to know to use it is that there’s an array called “project.walls” and you just need to add all your walls there.
hmm alright ig
Thank you so much!!! This is amazing!!!
for realllll