Hallo, kann mir jemand sagen wie man die steuerung so macht wie z.B in Space Rampage? (ich habe es eigentlich schon doch leider läuft mein spieler nie links und rechts vom spieler aus gesehen) hoffe es kann mir jemand helfen! Dnake
Steuerung von Space Rampage
-
-
So ungefähr hab ich das in Space Rampage gelöst (leicht abgeändert):
Step Event:
GML-Quellcode
- fdirection=point_direction(x,y,mouse_x,mouse_y);
- if (keyboard_check(ord('D'))) direction=fdirection-90;
- if (keyboard_check(ord('A'))) direction=fdirection+90;
- if (keyboard_check(ord('W')))
- {
- direction=fdirection;
- if (keyboard_check(ord('D'))) direction=fdirection-45;
- if (keyboard_check(ord('A'))) direction=fdirection+45;
- }
- if (keyboard_check(ord('S')))
- {
- direction=fdirection+180;
- if (keyboard_check(ord('D'))) direction=fdirection-135;
- if (keyboard_check(ord('A'))) direction=fdirection+135;
- }
Draw Event:
-
Danke werde mal schauen ob ich es hinkriege
-
Benutzer online 1
1 Besucher