#SOLVED Cannot iterate on a Dynamic value?

playtheHnote

  • Posts: 395
Hey again everyone I'm working on Sound King 2_0 and I have come across a problem that I do not really understand. Below I have posted a cut off small screen shot of the part of my behavior that has the problem. The error that I am encountering says: Cannot iterate on a dynamic value please specify...

Anyway, why is this happening??? (I know it has something to do with the map)
TY

« Last Edit: March 20, 2015, 01:19:48 pm by playtheHnote »
Check out my instrumental rock album "Hail to the Chosen One" at: https://soundcloud.com/play-the-h-note

Visit my facebook page @ https://www.facebook.com/justin.shellhorn.1
"Sound King"  now available at the forge see http://community.stencyl.com/index.php/topic,35672.0.html
for more info!

Justin

  • *
  • Posts: 4645
Looks like we need to cast game attributes to maps.

You can work around this by creating a map attribute in your behavior and doing this:

[ set my map attribute to [ value of game attribute with name : [ Sound King Data ] ]
[ for each [ key ] [ item ] in [ my map attribute ] ]
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

playtheHnote

  • Posts: 395
Easy enough, thanks a lot!!!
Check out my instrumental rock album "Hail to the Chosen One" at: https://soundcloud.com/play-the-h-note

Visit my facebook page @ https://www.facebook.com/justin.shellhorn.1
"Sound King"  now available at the forge see http://community.stencyl.com/index.php/topic,35672.0.html
for more info!

playtheHnote

  • Posts: 395
If anyone is interested in how to solve this problem I have posted a screen shot below to show how. I have included both a method for using attributes and a method for using var(s).

Thanks again for your help.
Check out my instrumental rock album "Hail to the Chosen One" at: https://soundcloud.com/play-the-h-note

Visit my facebook page @ https://www.facebook.com/justin.shellhorn.1
"Sound King"  now available at the forge see http://community.stencyl.com/index.php/topic,35672.0.html
for more info!