AI Competition. [dX]

Posted by DevonX on Aug. 1, 2007, 1:23 a.m.

Alright, screw giving up GM. I can't just quite cold turkey. Yumm…. turkey…. but anyway…

Ever since I started programming, I have always been interested in AI. Now, pathfinding may be easy from a topdown perspective, but what happens when you throw in gravity and friction? Your AI will have to adapt to these variables and take action accordingly. I will be starting small AI competitions every other day. They will be due the next day. So todays competition entries will be due tomorrow. Each competition after this one will also show the winner of the previous. So on to the competition.


In this competition you must use the simple platform engine provided below. It is extremely smooth and you may use it in games. But you must use it in your AI entry or you will be disqualified. You cannot modify the engine in any way or that will also result in a disqualification. You may use pathfinding, but your AI cannot directly follow the path, it must follow the basic platform physics. You cannot edit the room, the sprites, or room speed. you cannot make your AI move in any way other than through the engine. I'm sorry, but I use Vista, so the Engine will have to be a *.gmk. If anyone will be so kind to convert it to *.gm6 I will post a link to that here too so others can use that.

Link to Engine

You may only code in the objAI object.

Comments

DevonX 17 years, 4 months ago

Duh, you two just edited mine… jake made it slightly different though…

Crane-ium 17 years, 4 months ago

I fail at this contest. Everything is gm7.

SquareWheel 17 years, 4 months ago

I tried out a code along the lines of:

point=point_direction(x,y,objGoal.x,objGoal.y)

if point>=45 && point<=135 dir="up"
if point>=225 && point<=315 dir="down"
if point>=315 && point<=45 dir="right"
if point>=135 && point<=225 dir="left"

if dir="right" && !instance_place(x+1,y,objBlock) x+=1
if dir="left" && !instance_place(x-1,y,objBlock) x-=1
if dir="up" && !instance_place(x,y+1,objBlock) y+=1
if dir="down" && !instance_place(x,y-1,objBlock) y-=1

Didn't work though. Ehh, maybe I'll try the next one.

E-Magination 17 years, 4 months ago

Jake's ran 5 fps. YAY!

NoodleNog 17 years, 4 months ago

Quote:
Duh, you two just edited mine… jake made it slightly different though…
What? I never even downloaded yours. >_>

DevonX 17 years, 4 months ago

WTF? Something just happened and my GM7 is not registered anymore… I'll try making one without registered gm7. My engine is compatible with unregistered, right?

s 17 years, 4 months ago

You do know that GM7 can open GM6s,right?

DevonX 17 years, 4 months ago

But GM6 can't open .gmks.

JoshDreamland 17 years, 4 months ago

But there's a converter somewhere. Just fails at events XD

DevonX 17 years, 4 months ago


Aids