Ich hab ein anipic gemacht das sich im kris dreht und habe methode verwendet wie ich sie in einem tut mal hier im Forum gepostet habe und nun wenn ich das game start hat der doch ein problem mir dem drawevent aber ich alles so gemacht im draw event wie es seihen sollte.
[PHP]
Information about object: master1
Sprite: master1
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Create Event:
set the friction to 0.1
set variable direction to 0
set variable SPRITENUM to 20
set variable ANGLE to 360/SPRITENUM
Collision Event with object ball:
for other object: bounce not precisely against solid objects
Keyboard Event for Keypad 4 Key:
if x is larger than 112
move to position (-8,0)
Keyboard Event for Keypad 5 Key:
if y is smaller than room_height-656
move to position (0,8)
Keyboard Event for Keypad 6 Key:
if x is smaller than room_width-528
move to position (8,0)
Keyboard Event for Keypad 7 Key:
set variable direction to (direction+ANGLE) mod 360
Keyboard Event for Keypad 8 Key:
if y is larger than 112
move to position (0,-8)
Keyboard Event for Keypad 9 Key:
set variable direction to (direction+ANGLE) mod 360
Draw Event:
execute code:
spritetobedrawn=direction/ANGLE
draw_sprite(master1, spritetobedrawn, x, y)[/PHP]
[PHP]
Information about object: master1
Sprite: master1
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Create Event:
set the friction to 0.1
set variable direction to 0
set variable SPRITENUM to 20
set variable ANGLE to 360/SPRITENUM
Collision Event with object ball:
for other object: bounce not precisely against solid objects
Keyboard Event for Keypad 4 Key:
if x is larger than 112
move to position (-8,0)
Keyboard Event for Keypad 5 Key:
if y is smaller than room_height-656
move to position (0,8)
Keyboard Event for Keypad 6 Key:
if x is smaller than room_width-528
move to position (8,0)
Keyboard Event for Keypad 7 Key:
set variable direction to (direction+ANGLE) mod 360
Keyboard Event for Keypad 8 Key:
if y is larger than 112
move to position (0,-8)
Keyboard Event for Keypad 9 Key:
set variable direction to (direction+ANGLE) mod 360
Draw Event:
execute code:
spritetobedrawn=direction/ANGLE
draw_sprite(master1, spritetobedrawn, x, y)[/PHP]