Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
No. now when I walk into a wall, I get stuck entirely
Here's the tutorial I've been following
https://youtu.be/evkFHHNp0-Q
I'm still pretty new to coding. I have very little experience
You wrote
if place_meeting(x+hspd, y+hspd, oWall)
instead of
if place_meeting(x+hspd, y, oWall)
EDIT
and also you have
x+sign(vspd)
instead of
y+sign(vspd)
So just check again the collision part
if (!place_meeting(x, y+sign(vsp), oWall1)
I recommend you check out this tutorial series and other tutorials by Shaun Spaulding on his youtube channel.
https://www.youtube.com/watch?v=izNXbMdu348
I've updated the script but I'm still getting caught on the walls
https://steamcommunity.com/sharedfiles/filedetails/?id=1673373662&fileuploadsuccess=1
Both. I'm getting stuck as soon as I touch, and in corners
while (!place_meeting(x+sign(hspd), y, obj_wall)) {
x += sign(hspd);
}
hspd = 0;
}
x += hspd;
I ran your collision code (above) with the corrections and collisions work fine, so I think your problem is with your movement code as I did not replicate movement as in the tutorial. Please recheck your movement code matches the tutorial you are following. I really recommend the tutorial series I posted above as a first project. Shaun used to work for yoyogames, knows a lot of stuff and best of all how to explain it well.
The only problem with that is I can't find any videos by Shaun relating to what I'm trying to do. I want to make a RPG type of game like Final Fantasy or Undertale with a turn base strategy battle system. but whenever I type in Shaun RPG or Shaun Turn Base, I'm lead to another YouTuber
The video you showed me was the first video I watched when I started, but my game isn't going to be purely side scroller. my avatar is going to walk up, down, left, and right instead of just side to side, like older RPG games. so far I've been able to make the character move in all directions, he just gets stuck when touching walls
Thanks, but I'm gonna stay with the tutorial I'm watching now