Hallo Leutz',
Ich möchte gerne wenn man 'C' drückt das sich der Spieler duckt.
Hier der Code von 'obj_player' des Draw Events:
Alles anzeigen
Und hier der End Step Code:
Außerdem hätte ich da noch ein Problem...
Ich habe zwei Waffen (als Sprite). Wenn ich in Room1 gehe habe ich die Shotgun; Aber in Room2 auch
Aber in Room2 sollte eigentlich die MP5K sein...
Hier der Code der MP5K...
Keyboard Space
Alles anzeigen
DRAW
...und von der Shotgun:
Keyboard SPACE
Alles anzeigen
DRAW
Ich hoffe ihr könnt mir helfen...
Danke im voraus wünscht euer Undefined-Account
******************************************************************************
edit by Glowing Orb; Tippfehler im Titel geändert, um Verwechslungsgefahr mit einem anderen englischen Wort zu vermeiden
Ich möchte gerne wenn man 'C' drückt das sich der Spieler duckt.
Hier der Code von 'obj_player' des Draw Events:
GML-Quellcode
- {
- // set the projection
- d3d_set_projection(x,y,10, x+cos(direction*pi/180),y-sin(direction*pi/180),10, 0,0,1);
- // set color and transparency
- draw_set_alpha(1);
- draw_set_color(c_white);
- // draw floor and ceiling
- d3d_draw_floor(0,0,0,room_width,room_height,0,
- background_get_texture(texture_floor),32,32);
- d3d_draw_floor(0,0,32,room_width,room_height,32,
- background_get_texture(texture_ceiling),24,24);
- }
Und hier der End Step Code:
Außerdem hätte ich da noch ein Problem...
Ich habe zwei Waffen (als Sprite). Wenn ich in Room1 gehe habe ich die Shotgun; Aber in Room2 auch
Aber in Room2 sollte eigentlich die MP5K sein...
Hier der Code der MP5K...
Keyboard Space
GML-Quellcode
DRAW
...und von der Shotgun:
Keyboard SPACE
GML-Quellcode
- {
- // check whether you can shoot
- if (not can_shoot) exit;
- can_shoot = false;
- // show the animation and play the sound
- image_speed = 0.4;
- image_index = 0;
- sound_play(snd_shot);
- sound_play(snd_reload);
- // determine what you hit
- var xx, yy, ii;
- xx = global.camx;
- yy = global.camy;
- repeat (50)
- {
- xx += 4*global.camcos;
- yy -= 4*global.camsin;
- ii = instance_position(xx,yy,obj_wall_basic);
- if (ii == noone) continue;
- if (ii.object_index == obj_barrel)
- can_shoot = false;
- sound_play(snd_complete1)
- break;
- }
- }
DRAW
Ich hoffe ihr könnt mir helfen...
Danke im voraus wünscht euer Undefined-Account
******************************************************************************
edit by Glowing Orb; Tippfehler im Titel geändert, um Verwechslungsgefahr mit einem anderen englischen Wort zu vermeiden
Kontakt:
ICQ: 613678399
Skype: und3fin3d
Mail: 3fin3d@fahr-simulator.com
XFire: und3fin3d9
Steam: cedric_schmitt
Website: FS2009-Mods
ICQ: 613678399
Skype: und3fin3d
Mail: 3fin3d@fahr-simulator.com
XFire: und3fin3d9
Steam: cedric_schmitt
Website: FS2009-Mods
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Glowing Orb ()