-1
votes
0answers
25 views

AS3: Handle collision with ground. Velocity's and hitTestObject() [closed]

I'm working on a sidescroller game but i'm having issues with my screen region and collisions. I will just stick to 1 problem because once this is fixed i can probably also fix my screen so it scrolls ...
0
votes
1answer
85 views

Help with AABB collision detection [closed]

making my first attempts at implementing AABB collision. I got it to work...kinda. I've run into an odd issue I cant seem to fix. Basically when the objects overlap, I push one out. The pushing part ...
-1
votes
1answer
115 views

Help with tile-based collision [closed]

I've been working on a 2D platformer using Flash. I've managed to get the collision detection working, but its not exactly perfect. Below is the code I'm using //Get the speed of the player ...
0
votes
1answer
84 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
310 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
142 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
697 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
241 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
2k 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 ...
1
vote
3answers
653 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
856 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 ...