Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - YoungScott

Pages: 1
Ask a Question / Re: List of lists? Linked list/hash table
« on: July 21, 2011, 03:06:55 pm »
Thanks! I did a forum search for everything except for that, doh. XD; I'll take a look.

Ask a Question / List of lists? Linked list/hash table
« on: July 21, 2011, 02:29:55 pm »
Hi there,

I spoke to a couple of helpful guys on the stencylsupport IRC channel who gave me some ideas to think about, but I'd appreciate your input!

Here's my problem: I'm creating a simple "sim" game, sort of like Rollercoaster Tycoon, and I'm trying to keep track of a set of employees and their attributes. The employees and their stats will be unique to each session, so they can't just be hard coded.

I guess it's sort of like storing an inventory, only a but more complicated. I imagine that the best solution would involve some sort of multi-dimensional array, linked list, or hash table, but I can only find one-dimensional lists in Stencyl.

If this is possible with Stencyl, could someone give me a quick example? Would it involve a list of lists inside an actor or something?

Thanks for the awesome program,
- Scott

Hi there,

First of all, I just want to say "thanks" to the Stencyl team for what looks like an awesome IDE. :) Flixel seems great for what I want to do, but object orientation goes a little over my head. ;)

Anyway, here's the bug:

I set up a simple draw text block to draw an attribute for score and health on the screen. I thought I'd set them at a region so I could move them around on the background. I set them to a region and save the behaviour. But when I go back into the behaviour, the region selection will reset to [Last created region], which isn't what I want.

Is there something stupid I'm doing here? And yes, I did save the behaviour. ;)

Thank you!

[Edit] Please ignore me picking the (x) of health_region!

[Second edit] I should say that I get the result I want; i.e. the text displays at the correct regions I set them to, even though they "reset". It just doesn't tell you in the behaviour which region they're set to, which could be confusing for reading code later. :)

Pages: 1