Tag Info

New answers tagged

1

Computers are incredibly smart, and incredibly dumb; because they do exactly what you tell them to. For instance, you're telling it to play the sound when it finishes. =p titleWhooshSoundChannel.addEventListener( Event.SOUND_COMPLETE, onTitleWhooshFinished ); You have that line in several places in your ...


0

What approach could be the best when I have to check if the creeps are in range? You can use the Euclidean distance between them. If that were really too slow, you could use another distance function, such as the Manhattan distance or just the square distance (lose the costly sqrt operation). Wame question but applied to bullets, what happens when I ...


0

for 1, you could always try a range check, something like (absolute value of (Creep.X - tower.X) + (creep.Y - tower.Y) ) to get how far the unit is from the tower? Not so sure what you mean to number 2 though. On the topic of number three, take a look at How does pathfinding in RTS games work? for help on how RTS pathfinding works. Of course, these ...


1

First, a server doesn't have to be a dedicated server. A while back, starcraft for example, the creator of the multiplayer game was also the server running the game, the one that coordinated all other players. So p2p can work with a server. Second, in real-time games, the method you describe could work, except that the servers continue to advance the game ...



Top 50 recent answers are included