1
Ask a Question / Re: Endless Runner, but not fully random, how to create groups of actors?
« on: August 31, 2014, 01:10:00 am »The code I attached was just my basic scanning and creating test. For my actual game I am going to use the List utility extension and save each possible list to a 2d list and then pick randomly from them. This you may have to manually copy and paste to the actual level creation screen, but all it will be is copying and pasting a string into a 2d list. Then your program can select a row from levels. (Sorry if that didn't make the best sence). Also great job reading through my code. The code blocks I used were just workarounds due to Stencyl being annoying.
The final block in the create world behaivour creates an actor based on its actor type id. I would've done it so that it creates it based on its actor type, however it seems that whenever you set a list to a list e.g. [1,2,3] it can only contain text and number values not actor values e.g. [1,2,Player,4] wouldn't work. Therefore I used the getactortype() block which returns the actor type by the actor's id.
Sorry for the late reply, I've been busy with work the last few days. Thanks for answering my questions. It seems like this is a viable solution but it's kind of unintuitive to make things in Scenes, then run the game to get the list for them, then use that list to recreate that scene in code so I never have to actually call upon the Scene itself. I guess it would work once I get it set up but I'm not sure it's worth all the hassle. I'm considering just using Unity or Flash since I know how coding and I'm already familiar with those programs. I was hoping Stencyl would be a faster way for me to develop or prototype but it seems limited to do things like this easily. Maybe I'll end up using it after all, I'm not sure yet.
I think Stencyl would benefit from having something like Unity's prefabs or Flash's symbols. Even letting you combine and nest actors would be good enough. Thanks for the help so far everyone, I'll post here again if I intend to use Stencyl after all.