PixelWorld Pathing Test

PixelWorld Pathing Test

by EatMeR3turns
Report a bug
Flag Game
โญ Top
Learn to Fly 3
โญ Top
Bloons Monkey City
โญ Top
Learn to Fly 2
โญ Top
UnpuzzleX
โญ Top
Epic Battle Fantasy 4
โญ Top
Kingdom Rush
โญ Top
Swords and Souls
โญ Top
The Enchanted Cave 2
โญ Top
Incremancer
โญ Top
SAS: Zombie Assault 4
โญ Top
Mutilate-a-Doll 2
โญ Top
Escape Game - Computer Office Escape
๐Ÿ”ฅ Hot
NGU IDLE
โญ Top
Retro Bowl
โญ Top
Fleeing the Complex
โญ Top
The King's League: Odyssey
โญ Top
Bit Heroes
โญ Top
Bloons TD 5
โญ Top
Kingdom Rush Frontiers
โญ Top
Epic Battle Fantasy 5
Loading ad...

PixelWorld Pathing Test

Rating:
2.6
Released: April 26, 2011
Last updated: April 27, 2011
Developer: EatMeR3turns

Tags for PixelWorld Pathing Test

Description

Honestly, this is just an example of a pathing algorithm I designed. It is the earliest predecessor to a simple Programming-RTS I am working on. Speaking of which, if anybody is interested in implementing some graphics for such a game, please let me know. Thanks. :D

...categorized as a tutorial because I plan on turning it in to a tutorial, if I ever get this pathing system to be really high-quality.

NOTE: This is mediocre at best. I figure it works 80% of the time. It is completely from scratch. It will definitely improve in the future. XD

How to Play

Control + Left-Click "Box Select" to select the white squares, Left-Click to tell selected squares to move somewhere.

Developer Updates

Apr 26, 2011 8:12pm

Update 4-26-11: Fixed the mouse wheel zoom issue. Justโ€ฆ ignore that. XD

Update 4-27-11: They eventually stop jittering around when they cannot reach their target for an extended period of time.

Comments

0/1000
level1kid avatar

level1kid

Apr. 26, 2011

1
0

you should add a meathod that stops them when they are in a certain radius of where they are moving to stop the bumping together

tie372 avatar

tie372

Apr. 26, 2011

2
1

This is really quite a paradigm shift in the way we pathfind. The agents in this model exhibit extremely realistic behaviour. Their navigation skills not only around one object but multiple objects is astounding, and the very nature of the algorithm introduces seemingly random noise into the way they calculate their path. Props to you, EatMeR3turns, I look forward to seeing this go further.

multifails avatar

multifails

Apr. 30, 2011

0
0

I don't mean to be mean, but to give a realistic comment: This algorithm in its current state is worse than just making the objects go toward a goal and letting them get past obstacles by being pushed by the collision engine - the only time you would then get stuck is if velocity vector points in the opposing direction of a surface normal or a center point, depending on wether you use circles or polyobjects. In case you are serious about this, feel free to PM me and I can give you advice.

Baumstumpf avatar

Baumstumpf

Apr. 28, 2011

0
0

If it only would work.
Often they allready get stuck if you simply let em run in a line:
X is Target, O is Object that BLocks, B is the Block that should moev.
Now try it out like this:

X O B
And it often gets stuck.. really often.

EatMeR3turns avatar

EatMeR3turns

Apr. 27, 2011

0
0

@level1kid, I added a counter that increases a lot whenever it can't move forward and decreases a little whenever it can move forward, and then I compare that counter to the distance from the target to the current position squared. The purpose is so that it stops jittering around much sooner when in close proximity than when far away from the target position.

for god sake don't click!
how to make a basic adventure game using flash
basic flash tutorial
Tutorial: How to make a Basix Pong Game
I wanna be a popstar
MnB2:How to win
Flash Tutorial: Making Character Movements
The proper Basic Tween tutorial
handy flash techniques
Custom Cursor