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.

Topics - mightiest_hero

Pages: [1]
help / switch state problem
« on: Fri, Sep 9, 2011 »
i use registry class like photonstorm suggest but i have a problem.
player is static public in registry extends FlxSprite
When i switch state from menu to playstate i run player = new Player()
and i add player to playstate it works
then when i switch state to playstate again with different level to load it throw error
if i don't add player = new Player() before add player

help / Witch one is better
« on: Sat, Jul 30, 2011 »
I want to make object that has different sprite, width, and height.
Witch is better make 1 class that load graphic when change type or make different class?

Pages: [1]