added init-eventloop to all entities instead of constructor.
added function to change world. its fix right now.
fixed init.
added cleanup to entity. added init to spawner. changing worlds works, doesnt matter how many times i do it.
removed trace. set player to null.
fixed strange fireball appearance.
Name of the next level can now really be passed to the changeToLevel function in the root. If a wrong string is passed to the method, the program will crash.
pause by pressing 'pause' key.
using keyboardevent instead of timer. much more responsive.
added start, pause, resume and stop events to the root. (only start, pause, resume are used currently).
added functions to catch start/pause/resume events. The old init-function is used as start function. It makes the entity start. Resume/pause correctly pauses.
fix for hitboxes.
Added BaseClip which is the base for _ALL_ movieclips in the game. Every animation needs to have either a custom class or the BaseClip as baseclass to corretly support pausing.
Changed baseclip (and most subclasses) so that the init function is only called once and that rootRef is defined when it is called.
- Added ASDocs to methods to be overriden.
-Fixed baby not continuing attack when pausing while the animation is playing.
- Root only has 2 events now: Pause / Resume. Things start automatically when added to the stage.
removed dispatching of start event. Healthentity despawning works with a timer now. Sadly we cannot pause the timer (yet?)
Added PausingTimer, which pauses when the game is paused. HealthEntity despawn time uses a pausing timer.
Moved registering and removing eventhandlers for movement into the mover class.
Finished moving movement completely into mover. Subclasses can just override wait/walk to enhance the functionality.
Fixed movers not pausing correctly when dead.
Reformatted basicInfo: Removed double empty lines.