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
→
How to Get from a List
Pages:
1
How to Get from a List
Amdirant
Posts: 33
March 02, 2019, 05:37:48 am
I'm new to lists.
How do I retrieve information from it?
I'm trying to make one of nine things happen when a button is pressed and I'm a bit stuck.
Apologies if this had already been asked, I've looked and couldn't find the answer.
Luyren
Posts: 2815
March 02, 2019, 05:41:35 am
Under Attributes > Lists:
My Stencyl resources are available here:
https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Amdirant
Posts: 33
March 04, 2019, 11:28:05 am
Thank you. I have seen this, but where does it slot in?
CmdrWhitey13
Posts: 505
March 04, 2019, 11:30:07 am
May try looking here:
http://www.stencyl.com/help/view/lists/
Should give a better understanding.
Amdirant
Posts: 33
March 05, 2019, 03:58:58 am
Ive read that, but thank you.
My issue is the interface. Where do I find the piece that fits into the 'get from list' piece?
"Get item # from list" needs to go somewhere. Where does it go?
Luyren
Posts: 2815
March 05, 2019, 04:52:17 am
A few examples. Since lists can be anything, they can go anywhere. To do anything with numbers, you have to use the "as number" block.
My Stencyl resources are available here:
https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Amdirant
Posts: 33
March 05, 2019, 04:12:05 pm
Ah brilliant. I'll have a look at that.
Amdirant
Posts: 33
March 05, 2019, 04:17:41 pm
Can I get it to go through my list and select an entry every time the up arrow is pressed?
Luyren
Posts: 2815
March 06, 2019, 01:10:52 am
Yes. You can loop through the list, and there is a block to exit the loop, so you can use that when your reach your item and do your stuff.
My Stencyl resources are available here:
https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Amdirant
Posts: 33
March 06, 2019, 06:21:16 am
Thank you, I'll try that!
Pages:
1