Godot Version
4.2
Question
Im trying to make a variable that tells a clone what if statements it can and can’t access.
So what I’m trying to figure out is how can define a varible for the original and the clones that is independent from the other variables.
I currently have something that looks like this:
var selfType == 0
if Input.is_action_pressed("key1"):
duplicate()
var justCreated = true
if justCreated:
var selfType = type
print_debug("Cloned")
justCreated = false
My current attempt is defining the variable twice.