TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Resolved Questions
→
Some troubles with number lists (SOLVED)
Pages:
1
Some troubles with number lists (SOLVED)
docskull
Posts: 65
January 26, 2012, 04:00:33 pm
Hello there!
I am still having some troubles with list type game attributes
I have a list with several items(indexes) and set them to default number values, but when I set a variable to a given index of this list, it returns a Not a Number (NaN). It happens even if I wrap the "get item X from list Y" in a "as number" block.
Am I understanding this list thing all wrong?
Thanks in advance
« Last Edit: January 28, 2012, 02:10:19 am by docskull »
Abigayl
Posts: 807
January 26, 2012, 04:47:29 pm
Lists can be finicky... it helps a lot to see the actual coding that you are using. Are you using the ACTUAL "get item from list as number" grabber (NOT two pieces of coding, it's one combined code in Attributes -> Lists)... if not, that's your issue.
If you need help, please check my tutorials either here or Kongregate (
http://www.kongregate.com/accounts/Abigayl
) or come over to my stream:
http://www.livestream.com/poweredbyflowers
docskull
Posts: 65
January 28, 2012, 02:09:58 am
Oh ... m,y... god...
I feel so dumb, I was wrapping things int "as number" blocks, and then wrapping then in the general list getters. Now with the single block it works!
Thanks so much for helping me, Abigayl!!
Pages:
1