It's because Unity force you to work the "Unity way", which result a lot into basically regularly fighting with the editor, whereas Godot can propose you a way to work but you can also figure out your own way to do things and in most cases it will works too. Plus when you have started to take advantage of the power of creating your own addon, that's just next level.
How did you do it please? I have a similar issue, I try to display in a GUI coin (that are instanced throught the games) that are collected but it doesn't work
From my beginner experience, i have a very hard time to get my game validated on ios with godot at the moment, it seems to not be able to be upload there because of a errors going with the library of godot. so unless this is a users errors (which is likely the case as it is my first game ever)m i'll go for unity :)
Sort of, that was a very good serie but with lots of broken stuff due to the evolution of godot so i just try to update it and also bring some other new stuff, i'll make tutorial about creating bomb for example :)
Thank you! :) I agree with you for the 3d tutorial, the godot fam needs to have some tuts about the 3d, the little I've played with was great, even though it doesn't looks like fully ready yet, there's still some aspect like the gravity on slope that are a bit clunky. Maybe in godot 4 we'll have everything we look for (haha)
Actually I was thinking about a 3d version of that tutorial once i'll have completed the 2d version one, nice to know that some people would love to see that! :)
You're welcome! I'll make some other little tutorial like that on my channel, next is how to create a jumping platform, so don't hesitate to subscribe if you like it! :)
Thank you very much, that's a good start :) I didn't think about the ink changing the property of the floor, in my head it was two distinct things with different property, so that is a nice add to it, that makes me think about it ๐ค
GDQuest is good for tutorial, even though the little serie of heartbeast on how to make a platformer is a good introduction (it is that way i have start to do stuff in godot).
you have kids can code but it is kind of not enough focus on games, it is too focus on code without to much examples of what you can do with it, so it is something to know but not the best way to learn for a complete newbie
To the grace of PizzaCyborg who kindly gave me a piece of code, I have been able to somehow make a start of wall jump. His code - straight of the comment - wasn't working in my script so I have tried to adapt it the best I could, and now I can (almost) everytime jump on a wall, Yes! :D
BUT?...
I still can't stay on the wall without sliding down when I hold the C key, which is a bummer, but I am working on it at the moment. If someone has an idea for that, help is still very much appreciated :)
Here's the piece of code that works so far for me (thanks again PizzaCyborg to give me a start of answer) :
if is\_on\_wall():
print("is\_on\_wall")
if Input.is\_action\_pressed("ui\_keyC"):
velocity.y = lerp(velocity.y,0,0)
elif Input.is\_action\_just\_pressed("ui\_select"):
velocity.y = JUMP
velocity.x += -50 #DOESN'T REALLY WORKS BUT I CAN MAYBE DO SOMETHING WITH THAT?
$Sprite.flip\_h = true
if friction == true:
velocity.x = lerp(velocity.x, 0, 0.2)
else:
velocity.y = lerp(velocity.y,0,0)
โ
And here is the full code:
โ
extends KinematicBody2D
const UP = Vector2(0,-1)
var GRAVITY = 20
var WALL_GRAVITY = 60
const ACCELERATION = 50
const MAX_SPEED = 200
const JUMP = -500
var wall_jump = 400
var velocity = Vector2()
var RIGHT
var LEFT
โ
#CONTROL THE MOVEMENT PLAYER
func _physics_process(delta):
velocity.y += GRAVITY
\#velocity.x += WALL\_GRAVITY
var friction = false
if Input.is\_action\_pressed("ui\_right"):
velocity.x = min(velocity.x+ACCELERATION, MAX\_SPEED)
\#velocity.x = RIGHT
$Sprite.flip\_h = false #ACTIVATED LEFT ANIMATION
$[Sprite.play](https://Sprite.play)("Run") #TRIGGER THE RUN ANIMATION
elif Input.is\_action\_pressed("ui\_left"):
velocity.x = max(velocity.x-ACCELERATION, -MAX\_SPEED)
\#velocity.x = LEFT
$Sprite.flip\_h = true #ACTIVATED LEFT ANIMATION
$[Sprite.play](https://Sprite.play)("Run") #TRIGGER THE RUN ANIMATION
else:
$[Sprite.play](https://Sprite.play)("Idle")
velocity.x = lerp(velocity.x, 0, 0.2)
if is\_on\_floor():
if Input.is\_action\_just\_pressed("ui\_select"):
velocity.y = JUMP
if friction == true:
velocity.x = lerp(velocity.x, 0, 0.2)
So I have tried different variations of that code and for now it hasn't worked at the moment, the closest effect I had was to bounce over a wall, but the C_Key and the wall wasn't working ๐ค I am sure something very simple is wrong there, but can't work out what
I thought about raycasting aswell, although i haven't try the sliding option when character is falling and raycast hit something, that something interesting to think about, thanks :) I have tried to apply the same gravity that makes my player fall while on a wall but the character just stick to it ๐ค
It's because Unity force you to work the "Unity way", which result a lot into basically regularly fighting with the editor, whereas Godot can propose you a way to work but you can also figure out your own way to do things and in most cases it will works too. Plus when you have started to take advantage of the power of creating your own addon, that's just next level.
Thank you! :)
Thank you! :) (sorry for the late reply!)
there's me aswell who makes tutorial about godot, here's my channel :)
https://www.youtube.com/@jeanmakesgames
Here's a new tutorial for my 2D platformer serie, hope it can helps some of you here :)
How did you do it please? I have a similar issue, I try to display in a GUI coin (that are instanced throught the games) that are collected but it doesn't work
Thanks for your three answers, I'm gonna check that now and I'll see if it works.And Yes My code is an all in one script :)
Thank you, I'm gonna try this now :)
Looks & sounds suuuuuper nice, well done!! :)
From my beginner experience, i have a very hard time to get my game validated on ios with godot at the moment, it seems to not be able to be upload there because of a errors going with the library of godot. so unless this is a users errors (which is likely the case as it is my first game ever)m i'll go for unity :)
That looks very good, well done! :)
Sort of, that was a very good serie but with lots of broken stuff due to the evolution of godot so i just try to update it and also bring some other new stuff, i'll make tutorial about creating bomb for example :)
Thank you! :) I agree with you for the 3d tutorial, the godot fam needs to have some tuts about the 3d, the little I've played with was great, even though it doesn't looks like fully ready yet, there's still some aspect like the gravity on slope that are a bit clunky. Maybe in godot 4 we'll have everything we look for (haha)
Man, that looks awesome, well done! :)
Actually I was thinking about a 3d version of that tutorial once i'll have completed the 2d version one, nice to know that some people would love to see that! :)
Thank you! :)
Oh that's some nice tips, thanks, I'll try them! :D
You're welcome! I'll make some other little tutorial like that on my channel, next is how to create a jumping platform, so don't hesitate to subscribe if you like it! :)
Ok, thank you for sharing that :)
Thank you very much, that's a good start :) I didn't think about the ink changing the property of the floor, in my head it was two distinct things with different property, so that is a nice add to it, that makes me think about it ๐ค
Thanks a lot anyway! :)
GDQuest is good for tutorial, even though the little serie of heartbeast on how to make a platformer is a good introduction (it is that way i have start to do stuff in godot).
you have kids can code but it is kind of not enough focus on games, it is too focus on code without to much examples of what you can do with it, so it is something to know but not the best way to learn for a complete newbie
โ
https://www.youtube.com/playlist?list=PL9FzW-m48fn2jlBu_0DRh7PvAt-GULEmd https://www.youtube.com/channel/UCxboW7x0jZqFdvMdCFKTMsQ
โ
I have done some very quick tutorial on my channel aswell, don't know if it can be interesting you .
Voila! :)
That's a very nice idea man, well done! :)
Oh great, thanks! :)
So here where I stand at the moment:
To the grace of PizzaCyborg who kindly gave me a piece of code, I have been able to somehow make a start of wall jump. His code - straight of the comment - wasn't working in my script so I have tried to adapt it the best I could, and now I can (almost) everytime jump on a wall, Yes! :D
BUT?...
I still can't stay on the wall without sliding down when I hold the C key, which is a bummer, but I am working on it at the moment. If someone has an idea for that, help is still very much appreciated :)
Here's the piece of code that works so far for me (thanks again PizzaCyborg to give me a start of answer) :
โ
And here is the full code:
โ
extends KinematicBody2D
const UP = Vector2(0,-1)
var GRAVITY = 20
var WALL_GRAVITY = 60
const ACCELERATION = 50
const MAX_SPEED = 200
const JUMP = -500
var wall_jump = 400
var velocity = Vector2()
var RIGHT
var LEFT
โ
#CONTROL THE MOVEMENT PLAYER
func _physics_process(delta):
else:
So I have tried different variations of that code and for now it hasn't worked at the moment, the closest effect I had was to bounce over a wall, but the C_Key and the wall wasn't working ๐ค I am sure something very simple is wrong there, but can't work out what
I thought about raycasting aswell, although i haven't try the sliding option when character is falling and raycast hit something, that something interesting to think about, thanks :) I have tried to apply the same gravity that makes my player fall while on a wall but the character just stick to it ๐ค