Tagged Questions
1
vote
1answer
434 views
Using Event Driven Programming in games, when is it beneficial?
I am doing a refresher on ActionScript 3.
Other than using rudimentary tools like, Event.ENTER_FRAME and using events to receive input from the user's mouse and keyboard, I find that I rarely use ...
3
votes
1answer
608 views
Flash AS3 Tower Defense MouseEvents
In my tower defense game and every tile has its own mouse event listener. I am wondering, would it be better to use one event listener (MouseEvent.CLICK) and then when it runs the function, should I ...
1
vote
2answers
605 views
Flash Custom Events
I am working on a Flash Tower Defense game. I have a main game loop which is an eventListener for each frame. Whenever you gain money or lose a life, I want the GameUI to be updated to display this ...
4
votes
4answers
627 views
Level editor event system, how to translate event to game action
I've been busy trying to create a level editor for a tile based game i'm working on. It's all going pretty fine, the only thing i'm having trouble with is creating a simple event system.
Let's say ...
2
votes
4answers
810 views
Flash framerate reliability
I am working in Flash and a few things have been brought to my attention. Below is some code I have some questions on:
addEventListener(Event.ENTER_FRAME, function(e:Event):void
{
if (KEY_RIGHT)
...