Jump to content

  • Log In with Google      Sign In   
  • Create Account


IronyGames

Member Since 30 Mar 2012
Offline Last Active Dec 11 2013 07:00 AM
-----

Posts I've Made

In Topic: Rookie game design blog

17 September 2012 - 08:17 AM

New article, moving on about data structures.

Trees and balancing!
http://videogamestale.blogspot.com.es/2012/09/data-structures-tree-balancing-headaches.html

In Topic: Game scenes transition in AS3

17 August 2012 - 12:49 PM

Quickest way is to addChild() when you want to add the scene to the stage (remember to set the coords!), and removeChild() when you want it gone.

Scenes, therefore, should extend Sprite or MovieClip or so; basically having a huge MC-container for all the stuff in the different scenes. Or what you have is just fine, remember to export for AS3.

Couple tips:
  • First add the new scene so it's atop of the stage, then remove the old scene. Doing viceversa will make an ugly effect where there's nothing for a second.
  • The MCs might take time to be added, you might want to control that.
  • Make sure to make the MC instances point null when you're done with them so the garbage collector can free memory!

Another choice is to add all the childs and to have their alpha = 0 unless they are needed. This is quicker for time, but more memory-expensive I think, and besides they have to have a stop button when they're not opaque -- meaning it's not their turn.


I was unaware of your AS3 level so I tried to explain as much as possible.

In Topic: Rookie game design blog

17 August 2012 - 11:00 AM

I felt like writing a short story. Not really game-design related, but rather, videogame themed.

http://videogamestale.blogspot.com.es/2012/08/writing-world-1-1.html

In Topic: Rookie game design blog

14 August 2012 - 12:46 PM

Continuing the Data Structures Tutorials, here's the new article: Lists (where arrays have no meaning and your whole life is a lie) http://videogamestale.blogspot.com.es/2012/08/data-structures-list-where-arrays-have.html

I've also done a bit of redesign on the blog's theme. See if you like it better this way.

In Topic: Wait to fully-init instances in AS3?

09 August 2012 - 02:42 PM

Solved it. Thanks!

For the record, it was a mixture of that 'contrived example' which was what I had at the moment and some problems with the algorithm itself. So thanks for the help, guys.

PARTNERS