Комментарии:
Thanks for more amazing content
Ответитьgood job
ОтветитьThanx
ОтветитьWhy is the raycast moving using player movements instead of targeting player?
ОтветитьInvalid set index 'target_position' (on base: 'RayCast2D') with value of type 'Vector2'.
ОтветитьThank Man my script od working 💲
ОтветитьNot sure why but my bullets aren't going in the scene
ОтветитьHow set raycast collision mask 1 and 2 on code
ОтветитьI keep getting this syntax: Invalid get index 'position' (on base: "null instance"). Do you know what could be happening?
ОтветитьHow do you get the raycast to show up as a red arrow?
Ответитьthank you so much for the video🧡. can you make a video or explain me how I can add a range in which the turret will see the player? sorry I just started to learn gamedev
Ответитьhow do you make the bullet kill the player?
Ответитьbruh took me 10min to find whatever why the sprite was not looking at player, then i come to this video and find out that i just have to put "ToLocal". Now i ask why is it a thing, it does work now. Thanks
ОтветитьAny possible reason why I would be getting this error?:
- Invalid set index 'direction' (on base: 'Area2D (EnemyBullet.gd)') with value of type 'Vector2'.
When I edit out this line of code, the combined scene is able to play:
# ENEMY_BULLET.direction = (RAY_CAST.target_position).normalized()
In my game im doing a ray cast from the front of an enemy, if the player hits that ray cast the enemy will shoot. The issue I'm having is anything and everything the Raycast collides with comes back as true.
ОтветитьCheers man
ОтветитьThis code for the bullet desnt work. When I implement it, the bullets are coming out at a 90 degree angle to the right of the ray cast. I followed the code as 1:1 as possible, yet I have no idea what is causing this ( on v4.2.1)
Ответитьeverything works except this:
Parse Error: Cannot call non-static function "instantiate()" on the class "PackedScene" directly. Make an instance instead.
it says this right at the end when i try to instantiate the bullet
(btw i am using a character body 2D for the turret)
helped me <3, thanks
Ответитьis there a way to add range for ray? or do we have to create a collision to detect player for making a range?
ОтветитьWhen I start my game I get this error:
Invalid get index 'position' (on base: 'null instance').
Nice work. Stills working in 4.2.2 :)
ОтветитьWhy isn't working on 3d
Ответитьthanks man from brazil
ОтветитьIts easier thank i thought thanks
Ответитьit worked! thank you so much.
Ответить