Search found 3 matches

by K29
Sun Jul 23, 2023 3:40 am
Forum: Request Help
Topic: Using strings as to reference variables
Replies: 11
Views: 5501

Re: Using strings as to reference variables

What are you attempting to do in the script? GdScript? var v1 = "v2" var v2 some how use v1 to refrence v2 Some folks have mentioned dictionaries and `get` already, but I'd like to take a different approach to help you. If you're trying to store the name of the second variable in the firs...
by K29
Tue Jul 18, 2023 10:41 pm
Forum: Request Help
Topic: Using strings as to reference variables
Replies: 11
Views: 5501

Re: Using strings as to reference variables

stayathomedev wrote: Tue Jul 18, 2023 2:37 am What are you attempting to do in the script? GdScript?
var v1 = "v2"
var v2

some how use v1 to refrence v2
by K29
Mon Jul 17, 2023 11:31 pm
Forum: Request Help
Topic: Using strings as to reference variables
Replies: 11
Views: 5501

Using strings as to reference variables

how do I use strings to reference variables?

SOLVED

Code: Select all

get()