hi, ich habe ein kleines problem:
ich möchte mit meiner schrotflinte 5 kugeln abschießen (einen in die mitte des fadenkreuzes (maus), links, rechts, oben und unten.jeweils um 7 einheiten versetzt. ich kopiere mal bisher die objekt information:
Alles anzeigen
ich möchte mit meiner schrotflinte 5 kugeln abschießen (einen in die mitte des fadenkreuzes (maus), links, rechts, oben und unten.jeweils um 7 einheiten versetzt. ich kopiere mal bisher die objekt information:
Quellcode
- Information about object: waffe03sg
- Sprite: Waffe03SG
- Solid: false
- Visible: true
- Depth: 0
- Persistent: false
- Parent: <no parent>
- Mask: <same as sprite>
- Create Event:
- execute code:
- gunReady = true;
- turretDirection = 0;
- targetDirection = 0;
- Alarm Event for alarm 0:
- execute code:
- gunReady = true;
- Step Event:
- execute code:
- targetDirection = point_direction(x, y, ziel.x, ziel.y);
- direction = targetDirection
- image_single = direction * image_number / 360;
- if (mouse_check_button(mb_left)) {
- if (gunReady) {
- myBullet = instance_create(x, y, schrotkugel);
- myBullet.direction = direction;
- myBullet.speed = 15;
- myBullet.image_single = direction * myBullet.image_number / 360;
- myBullet.alarm[0] = point_distance(x, y, ziel.x, ziel.y) / myBullet.speed;
- gunReady = false;
- alarm[0] = 10;
- }
- }
- End Step Event:
- execute code:
- waffe03sg.x = x;
- waffe03sg.y = y
- Keyboard Event for Y-key Key:
- destroy the instance
- create instance of object waffe06fw at position (0,0)

"Dummköpfe sind Denkerköpfen weit überlegen. Zahlenmäßig." Ernst Ferstl