Hallo
Ich programmiere gerade ein riesiges Snake game mit Story mode.
So dann ist mir die Idee gekommen eine vom computer gesteuerte Snake zu programmieren. Doch das hat nicht funktionier ich habe keine Ahnung wie ich so etwas programmieren könnte...ich habe schon alles versucht.
Hier ist der Artikel den ich ins GM Forum gestellt hab aber keiner konnte mir helfen
---------------------------------------------
GAMEMAKER 5.3A
I am developping a snake game and i tried to make a snake KI but it nebver worked... always doing stupid things ( the computersnake)
Here the codes i use for the head of the snake.
(playersnake works but how to make out of the following codes i use a CPU snake ?that are the codes of the playersnake)
*EDIT*
Codeteil rausgenommen um verwirrungen zu ersparren ladet die engine runter und seht selbst was ich meine =(
wie das mit der CPU geht =(
*EDIT*
soo ok
i need a code so the CPU snake will go in the direction to the item (item is the thing with the snake eats) so the snake should move to the item and before it crashs in a wall it should change the directions...
I dont know how to do this...
The track of the snake would work but the head u see above wont... so i would be very very happy if you could help me... of course a credit for you ...
thanks
-----------------------------
So dass war mein Thema...aber wie gesagt keiner konnte mir helfen jetzt versuche ich es hier...kann jemand etwas mit meinen Codes anfangen oder eine eigene Engine bzw example machen ?
Credits und ein dickes Dankeschön wären euch garantiert ...
vielen dank
Ich programmiere gerade ein riesiges Snake game mit Story mode.
So dann ist mir die Idee gekommen eine vom computer gesteuerte Snake zu programmieren. Doch das hat nicht funktionier ich habe keine Ahnung wie ich so etwas programmieren könnte...ich habe schon alles versucht.
Hier ist der Artikel den ich ins GM Forum gestellt hab aber keiner konnte mir helfen
---------------------------------------------
GAMEMAKER 5.3A
I am developping a snake game and i tried to make a snake KI but it nebver worked... always doing stupid things ( the computersnake)
Here the codes i use for the head of the snake.
(playersnake works but how to make out of the following codes i use a CPU snake ?that are the codes of the playersnake)
*EDIT*
Codeteil rausgenommen um verwirrungen zu ersparren ladet die engine runter und seht selbst was ich meine =(
wie das mit der CPU geht =(
*EDIT*
soo ok
i need a code so the CPU snake will go in the direction to the item (item is the thing with the snake eats) so the snake should move to the item and before it crashs in a wall it should change the directions...
I dont know how to do this...
The track of the snake would work but the head u see above wont... so i would be very very happy if you could help me... of course a credit for you ...
thanks
-----------------------------
So dass war mein Thema...aber wie gesagt keiner konnte mir helfen jetzt versuche ich es hier...kann jemand etwas mit meinen Codes anfangen oder eine eigene Engine bzw example machen ?
Credits und ein dickes Dankeschön wären euch garantiert ...
vielen dank
Dieser Beitrag wurde bereits 4 mal editiert, zuletzt von t3mp3st ()