Skocz do zawartości

Rekomendowane odpowiedzi

Opublikowano

Witam ponownie! Potrzebuję pomocy, tak jak w tytule nie mogę skakać i mam brak obiektu tzw. biały sprite(WTF!)

Obiekt się pojawia ponownie, gdy naciskam strzałki lewo - prawo.

Oto opis obiektu:

Information about object: lud

Sprite: sprite26
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>

Create Event:
execute code:

var jump;
global.latanie = false


Step Event:
execute code:


if place_free(x,y+1)
{gravity = 0.4}
else
{gravity = 0}




Collision Event with object sciana_lewo:
execute code:

move_contact_solid(270,4)
vspeed = 0


Collision Event with object armatka:
execute code:

if ! place_free(x,y+1)
{vspeed = -15
jump = 1}



Keyboard Event for <Left> Key:
execute code:


if place_free(x-4,y)
{x-=4}


if sound sound0 is not playing
      play sound sound0; looping: true
set the sprite to sprite27 with subimage 0 and speed 1

Keyboard Event for <Right> Key:
execute code:


if place_free(x+4,y)
{x+=4}


if sound sound0 is not playing
      play sound sound0; looping: true
set the sprite to sprite28 with subimage 0 and speed 1

Key Press Event for <Up> Key:
execute code:


if ! place_free(x,y+1)
{vspeed = -10
jump = 1}
else {
if (jump = 1){
vspeed += -10
jump = 0
}
}


set the sprite to sprite26 with subimage 0 and speed 1
if sound sound1 is not playing
      play sound sound1; looping: false

Key Press Event for R-key Key:
restart the current room with transition effect <no effect>

Key Release Event for <any key> Key:
set the sprite to sprite26 with subimage 0 and speed 1
if sound sound0 is playing
      stop sound sound0

Opublikowano

to co masz w Key Release Event for <any key> Key przerzuć do keyboard -> <no key>

a ze skokiem, zrób to na podstawie skoku z FAQ (tj. ustaw gravity i vspeed=-10 itd), bo to co Ty zrobiłeś, to nawet nie wiadomo, jak rozumieć ;o

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...