#Tutorial problem
47 messages ยท Page 1 of 1 (latest)
Line 36, you wrote projectile.instance() instead of projectile.instantiate()
@amber bay I am now facing this problem please halp
I checked the gdquest projectile resource file and I can't figure it out why packscene not working in my code
what is the tutorial again?
oh
hum
did you make a variable to preload your scene?
something like this
Yes
Oh wait no
The video tutorial didn't have that
Learn to Code from Zero, With Godot: https://www.gdquest.com/
๐ THE LINKS
Open-source demo project: https://github.com/gdquest-demos/godot-demos-2022/tree/main/ranged-attack
๐ฅ CREDITS
Video edited by Nesi: https://www.youtube.com/c/NesiAwesomeness
๐ JOIN US
Come chat on Discord: https://discord.gg/87NNb3Z
Follow us on Twitter: h...
oh, it's an Godot 3.5 tutorial, I don't really know this version but from what I see, it preloads the scenes well, at the top of the scripts (the two const)
Yeah I'm using Godot 4 so
But funny thing is that when I open the demo project and I check their project file, is has no error
oh, try to change BulletScene by bullet
will do
:(
Change const by a variable
I running out of ideas ๐
try to change ".gd" to ".tscn"
you're probably trying to get a scene, not a script
not at all, it happens to me all the time too, that's the only reason I noticed 
And now this TwT
try to go into thee 120mm cannon scene (and script), it says it can't find "ShootingPoint". I suspect there is a mistake somewhere there
it says there is a problem in line 9 of that script (120_mm_cannon.gd), so either there is a problem with declaring that variable or there is some other problem
regarding that variable or node
also, just curious, but is there now a global "bullet" var and a local one within the shoot function? Cause you should generally avoid giving two different things the same name if they are within the same script
oh don't worry i know
and I fixed it as the tutorial shown
like this
it works now so that's all that matter