1
vote
2answers
135 views

Collision detection circle-segment-segment

I've already implemented collision detection in my game loosely following this tutorial, which works great, but I realized there's one major flaw. The player and the enemies are circles, while the ...
0
votes
1answer
91 views

CDK (as3) false positives when using it with array elements

I'm having problems when using the CDK (Collision Detection Kit) with elements in an array. It keeps getting me false positives of collision. I'm making a game in which the player controls a “ship”, ...
1
vote
2answers
341 views

Calculating wall angle and sliding in 2D

Got a new project recently where I don't use any physics engine, but it requires some basic phyiscs. Basically it's a 2d "top-down" game type. I would like to add a smooth wall collision which feels ...
0
votes
1answer
232 views

AS3 Rect-Rect Collision

Basically, my game has the player's attack hitbox change based on the attack being performed. I tried to make a simple collision test that takes an enemy's coordinates and have it check to see if it's ...
0
votes
1answer
447 views

Collision Detection fails with AI cars

I am making a car parking game in flash and AS3 wherein I drive my car along with other AI traffic cars moving along a specified path using Guidelines. I am using CDK for collision detection. The ...
0
votes
1answer
155 views

Why does the player fall down when in between platforms? Tile based platformer

I've been working on a 2D platformer and have gotten the collision working, except for one tiny problem. My games a tile based platformer and whenever the player is in between two tiles, he falls ...
0
votes
1answer
2k views

AS3 hittest with a tweening movieclip, what is the best way?

I'm making a simple game. The character is movable with the arrow keys. The enemies are moving around the screen with a (classic) tween. I want to detect collision between the character and the ...
2
votes
1answer
879 views

How to detect collisions in AS3?

I'm trying to make a simple game, when the ball falls into certain block, you win. Mechanics: The ball falls through several obstacles, in the end there are two blocks, if the ball touches the left ...
3
votes
2answers
305 views

How to make it so units don't stack up in one location? [duplicate]

Possible Duplicate: Is there a simple way to stop enemies standing in the same spot? So I'm making a game in AS3, it's a strategy DotA-like game (for flash game equivalent, there's UDE) so ...
1
vote
1answer
3k views

Collision Detection for sidescrolling Tile based Game

I've been working on a tile based game with a 2d array as fundamental ground for my tiles. Now my next step is to have the wall tiles be impenetrable, so that the player can walk ontop of them and ...
2
votes
3answers
1k views

Actionscript 3: Which side of object is hit?

I have a two objects colliding with each other. I am testing for the collision with if(ob1.hitTestObject(ob2)){//do something }. Is there a way to determine which side of the object was hit, i.e. if ...
2
votes
3answers
965 views

Flash AS3 Tower Defense Problem

I am working on a tower defense game in Flash. Right now most towers find the the nearest enemy in range (enemies are in an array), get the enemies coordinates, and fire a bullet. When it hits the ...