#interaction indicator?

14 messages · Page 1 of 1 (latest)

edgy idol
#

i cant get it to work no matter what i do. the outline refuses to show and crashes the game when its supposed to appear.

surreal rune
#

Try $outline.show()

#

@edgy idol

edgy idol
#

ill try it

#

works gdthumbsup

#

many thanks

surreal rune
# edgy idol many thanks

Np, make sure you make the outline node not have the % by it (i do not remember exactly what it does, but ik you probably do not need it) you might have it for another reason than i think, if so then you do not need to

edgy idol
#

the % makes it a global resource

surreal rune
edgy idol
#

either way i appreciate it. i spent 2 hours on that for it only to be fixed by one line of code

#

its humbling really

#

also nice bio. outer wilds is one of my favorite games as well

surreal rune
# edgy idol either way i appreciate it. i spent 2 hours on that for it only to be fixed by o...

Ye, the reason it works is because $ is used to refrence a node, but only a child node of the one that has the script atached to it. In your project the script is atached to gunnerconsol, and outline a child of it. If the script were atached to the root node of the scene then it would be $shipineteractables/gunnerconsole/outline, but since it is atached to gunnerconsole, outline is one below it in the hierarchy and thus you just need $outline. Also you always need a . between the node you are referencing and the function. (Sry this is a rly bad explanation, but hopefully you understand)