Benutzerinformationen überspringen
Game Maker Version: 8.1 Lite
Selbsteinschätzung: GML Fortgeschrittener
Aktuelles Projekt: Planung

|
|
GML |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
attacknr=floor(random(3)) if (attacknr=0) { //atttacke 1 } if (attacknr=1) { //atttacke 2 } if (attacknr=2) { //atttacke 3 } |
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »RoFra« (11. November 2006, 12:43)
Benutzerinformationen überspringen
Game Maker Version: 7 Pro
Selbsteinschätzung: GML Fortgeschrittener
Aktuelles Projekt: Handyspiele (JavaME, Android, iPhone, iPad)
Danksagungen: 28
|
|
GML |
1 2 3 4 |
if (!collision_line(x,y,obj_Spieler.x,obj_Spieler.y,obj_Wand,0,1) { // schießen } |
|
|
GML |
1 2 3 |
i=instance_create(x,y,obj_Schuss); i.direction=direction; i.speed=5; |
Benutzerinformationen überspringen
Game Maker Version: 8.1 Lite
Selbsteinschätzung: GML Fortgeschrittener
Aktuelles Projekt: Planung
|
|
GML |
1 2 3 4 5 |
//stepevent des gegners: if x>player.x image_xscale=-1 if x<player.x image_xscale=1 |
Benutzerinformationen überspringen
Game Maker Version: 8.1 Lite
Selbsteinschätzung: GML Fortgeschrittener
Aktuelles Projekt: Planung
|
|
GML |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
if keyboard_check_direct(vk_right) { if timer > 0 { timer+=1 x += 6; } else { x += 3; } } if keyboard_check_released(vk_right) { timer = 30; } if timer>0 timer -=1; |
Benutzerinformationen überspringen
Game Maker Version: 8.1 Lite
Selbsteinschätzung: GML Fortgeschrittener
Aktuelles Projekt: Planung
