So I just ran a session and I can't get over how my party raided a bunch of bandits in the house. Luck was on their side, but I have to say, this was so awesome, and hilarious. So after spending about 2h on creating a mobile incubator for an owl bear egg they found (a barrel filled with blankets, he...
So, I've been looking for this for quite a bit now (I hope I'm not just stupid and somehow missed this feature). I know how to make classes and as far as I know that's basically making custom nodes. The way I do it now, I have a custom class that I can use as a node. One difference is that when I ch...
The title, I'm trying to make an object rotate towards mouse, but limited only to 4 directions. I have some code, but it works really wonky, turning around to the wrong directions and most of the time not turning altogether. var angle = get_angle_to(get_global_mouse_position()) print(angle) if angle...
From what I managed to find, you can place a terrain tile and update all previously placed tiles with TileMap.set_cell_terrain_connect(), but with my setup it doesn't quite work since I place the tiles in the editor and then remove tiles with my world generation script. The problem is, I can't find...
So i kinda located my issiue but i have no idea how to fix it. This is my script for swinging: func swing(delta): var r=p.global_position-hookPos if p.vel.length()<0.01 or r.length()<100: return var angle=acos(r.dot(p.vel)/(r.length()p.vel.length())) print(r.length()p.vel.length()) var radVel=cos(an...