Very comprehensive tutorial and only 15 mins! Width has only one syllable btw ; )
@christine26518 ай бұрын
Very well done.
@octodemy8 ай бұрын
Thanks :)
@rasikrodriguez39627 ай бұрын
As I understand this is based on a 3d prediction video you made before and improved the code. Then made it 2d. This is amazing! Are you sharing the code to make the prediction anyware?
@octodemy7 ай бұрын
Thanks :). Yeah, I found this new method to have perfect predictions about the same time I finished the previous video. So I made this one in 2D instead. For now, the project files are on patreon. You can get it by supporting me there (sorry about that).
@alexxander72892 ай бұрын
i could not get my projectile to "shoot". it seemed to be "shooting" from underneath the player. So I added this code in the do_attack function. The below code should go directly above "obj.linear_velocity = EXPLOSIVE_FORCE * get_forward_direction()" line of code. # Offset the projectile to appear away from of the player var offset = get_forward_direction() * 20 # Adjust '20' for distance obj.global_position = global_position + offset
@octodemy2 ай бұрын
You probably had your projectile collision layer/mask colliding with the player. Which is something you might want depending on the game type. In the video, I've made it so the projectile doesn't collide with the player, so there was no problem when spawning the projectile in beneath the player. (I briefly comment that I did that at some point, but it can be easily missed as I don't put too much focus on it)
@fiffy65727 ай бұрын
Hi! Great tutorial! Do you have a link to look at the source code of this project?
@octodemy6 ай бұрын
Thanks! For now, you can get the projects source code by supporting me on patreon.