@eons I prefer mastodon ;o)

I tried something like :

var buttons = {}
var witch_but = button0

str2var(str("buttons.", witch_but))

but it won't take 'buttons.button0' as a full dict path


@Nomys_Tempar key can be a string, right now my head is on another language but maybe you can get/set with [] notation instead

@eons Thanks ! it's working with button[button0].blabla !

Finally !!!

Sign in to participate in the conversation
Gamedev Mastodon

Game development! Discussions about game development and related fields, and/or by game developers and related professions.