Hergo ugo mukas lediopi asokalo!
Warum wackelt/ruckelt mein Text im Spiel immer wenn ich von einem Sprung aufkomme?
Kann mir das jemand beantworten?
Player:
Spoiler anzeigen
Platform:
Spoiler anzeigen
Gegner/Wand:
Spoiler anzeigen
Hier die Datei:
jump.zip
ENTER - Neu starten !!! SPACE - Neu starten !!!
Pfeil "Hoch" - Springen
Warum wackelt/ruckelt mein Text im Spiel immer wenn ich von einem Sprung aufkomme?
Kann mir das jemand beantworten?
Player:
Information about object: obj_player
Sprite: sprite3
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Create Event:
execute code:
global.p_health=100
xx=view_xview[0]
yy=view_yview[0]
Step Event:
jump relative to position (5,0)
execute code:
xx=view_xview[0]
yy=view_yview[0]
if relative position (0,1) is collision free for Only solid objects
set the gravity to 2 in direction 270
else
set the gravity to 0 in direction 270
Collision Event with object obj_platform:
move in direction direction at most 3456789 till a contact with solid objects
set the vertical speed to 0
Collision Event with object obj_wall:
execute code:
global.p_health-=5
Keyboard Event for <Up> Key:
if relative position (0,1) gives a collision with Only solid objects
set the vertical speed to -10
Draw Event:
execute code:
draw_set_color(c_blue)
draw_set_font(font0)
draw_sprite(sprite3,0,x,y)
draw_text(xx+120,yy+20,global.p_health)
Key Press Event for <Space> Key:
restart the game
Sprite: sprite3
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Create Event:
execute code:
global.p_health=100
xx=view_xview[0]
yy=view_yview[0]
Step Event:
jump relative to position (5,0)
execute code:
xx=view_xview[0]
yy=view_yview[0]
if relative position (0,1) is collision free for Only solid objects
set the gravity to 2 in direction 270
else
set the gravity to 0 in direction 270
Collision Event with object obj_platform:
move in direction direction at most 3456789 till a contact with solid objects
set the vertical speed to 0
Collision Event with object obj_wall:
execute code:
global.p_health-=5
Keyboard Event for <Up> Key:
if relative position (0,1) gives a collision with Only solid objects
set the vertical speed to -10
Draw Event:
execute code:
draw_set_color(c_blue)
draw_set_font(font0)
draw_sprite(sprite3,0,x,y)
draw_text(xx+120,yy+20,global.p_health)
Key Press Event for <Space> Key:
restart the game
Platform:
Information about object: obj_platform
Sprite: sprite0
Solid: true
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Sprite: sprite0
Solid: true
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Gegner/Wand:
Information about object: obj_wall
Sprite: sprite4
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Sprite: sprite4
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Hier die Datei:
jump.zip
Pfeil "Hoch" - Springen
Ihc hab so voll den ij