EMR,
@EMR@mastodon.sdf.org avatar

@beeoproblem Since the node, er, topology might be different depending on your game, there are some different approaches. If you really want to put it on the root, you can use get_tree().get_root(). I usually want all projectiles to be in a specific place below the root though, so you can make an autoload that has a method to give you the proper path for shots, like World.get_shots_parent().

Here's an example: https://github.com/EamonnMR/space-craft-22/blob/f20eb5403bea717407d202369fc8d83494d3cb1f/component/Weapon.gd#L74

For laser beams and such I of course want it stuck.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • gamedev
  • cisconetworking
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • cubers
  • GTA5RPClips
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • tacticalgear
  • ethstaker
  • kavyap
  • Durango
  • JUstTest
  • everett
  • normalnudes
  • anitta
  • mdbf
  • ngwrru68w68
  • tester
  • modclub
  • osvaldo12
  • provamag3
  • khanakhh
  • Leos
  • megavids
  • lostlight
  • All magazines