Skocz do zawartości

RaV Royal

Użytkownicy
  • Postów

    224
  • Dołączył

  • Ostatnia wizyta

Treść opublikowana przez RaV Royal

  1. Ale wywala mi: Unown variable: x ... Pomożecie?
  2. Z tym żalem to nie do was... 26.II.2008 - ten dzień nie był moim najlepszym... A co do tematu, (żeby off-topa nie robić) to co pod zmienne x, y, X i Y podstawić?
  3. Żal... A jaki skrypt trzeba wpisać, aby po wyjściu z domku, hero stanął przed jego drzwiami???
  4. Mam to w Step ustawić, tak?? I co pod zmienne podstawić??
  5. A jak zrobić, żeby po wyjściu z pokoju, hero ustawiał się przed drzwiami???
  6. Siemka, Tworzę nową gierkę, którą zatytułowałem Training makes Master. Graficznie to coś w stylu Pkmn na Gameboya. No ale nie o to dokładnie mi chodzi. :P Pierwszy room to takie małe miasteczko. Przed jednym wyjściem stoi taki ziomuś. Chodzi mi o to, aby po podejściu do niego i naciśnięciu SPACJI, pojawiła się wiadomość 'blablablabla' i 3 warianty. Z pomocą artykułów i metody prób i błędów udało mi się stworzyć skrypt, który tworzy ją. Ale od razu po rozpoczęciu gry. :| Zapodam tutaj skrypt. Moglibyście napisać mi, w czym robię błąd, że ta wiadomość pojawia się na początku gry? GML if (distance_to_object(obj_guy_town1) < 50)&&(keyboard_check_pressed(vk_space)); { var m; m=show_message_ext('Czy chcesz przejsc dalej?','Tak','Nie','Nie wiem') if m=1 { show_message('Ok, czekam') } else if m=2 { show_message('Nie to nie')}} if m=3 { show_message('Przemysl moja propozycje')} Aha, i jeszcze jedno. Jaki będzie kod, żeby po kliknięciu obojętnie którego wariantu, wiadomość zniknęła? Z góry thx!!! :thumbsup:
  7. GML Information about object: obj_ball2 Sprite: spr_ball2 Solid: false Visible: true Depth: 0 Persistent: true Parent: <no parent> Mask: <same as sprite> Collision Event with object obj_bramka: bounce precisely against solid objects Collision Event with object obj_linia_bramkowa: set the score relative to 1 jump to the start position start moving in directions 000010000 with speed set to 0 execute code: if (score ==3){ // Jezeli strzelono 3 gole room_goto_next(); // Przechodzi do nastepnego roomu score=0; } Collision Event with object obj_defender_dol: set the number of lives relative to -1 jump to the start position start moving in directions 000010000 with speed set to 0 Collision Event with object obj_defender_dol_walked: set the number of lives relative to -1 jump to the start position start moving in directions 000010000 with speed set to 0 Collision Event with object obj_linia_boiska-pion: bounce precisely against solid objects Collision Event with object obj_linia_boiska-poziom: bounce precisely against solid objects Collision Event with object obj_goalkeeper: set the number of lives relative to -1 jump to the start position start moving in directions 000010000 with speed set to 0 Keyboard Event for Keypad 1 Key: start moving in directions 100000000 with speed set to 2 Keyboard Event for Keypad 2 Key: start moving in directions 010000000 with speed set to 2,5 Keyboard Event for Keypad 3 Key: start moving in directions 001000000 with speed set to 2 Keyboard Event for Keypad 4 Key: start moving in directions 000100000 with speed set to 2,5 Keyboard Event for Keypad 5 Key: start moving in directions 000010000 with speed set to 0 Keyboard Event for Keypad 6 Key: start moving in directions 000001000 with speed set to 2,5 Keyboard Event for Keypad 7 Key: start moving in directions 000000100 with speed set to 2 Keyboard Event for Keypad 8 Key: start moving in directions 000000010 with speed set to 2,5 Keyboard Event for Keypad 9 Key: start moving in directions 000000001 with speed set to 2 - kod piłki
  8. Polecam Adobe Photoshop!!! W internecie jest trial na 30 dni.
  9. No tak. Po zetknięciu z obj_defender_dol_walked cofa do room'u0 i ustawia wynik: 0 ; lives: 3 :huh:
  10. Jak w temacie. Chodzi o tą samą grę, o której pisałem parę topiców niżej. Tym razem problem tkwi w stracie życia w roomie, np. 2. W kolizji piłki z obrońcą mam taki kod: GML Collision Event with object obj_defender_dol_walked: set the number of lives relative to -1 jump to the start position start moving in directions 000010000 with speed set to 0 Jest to piłka, która występuje tylko w roomie nr 2. Próbowałem różnych metod, ale niestety nic... :|
  11. No ale sytuacja jest następująca: Początek gry: -room1 -score: 0 -lives: 3 W pierwszym room'ie po zderzeniu z obrońcą odejmuje 1 życie, ale przy sytuacja takiej: -room2 -scores: (dowolnie, ale < 3) -lives: 3 po zderzeniu z obrońcą cofa mnie do room1 i ustawia tak: -score: 0 -lives: 3 :| Kapujecie?? Jak nie to piszcie na gg: 5756307
  12. Ale mam ustawione, że po kolizji z obrońcą odbijam się!!!
  13. Siemka znowu, żeby nie zakładać nowego topica to zapytam tutaj... Dlaczego kiedy jestem w drugim room'ie, to jak dotknę obrońcę to nie odejmuje życia, ale cofa do 1-szego room'u?? Pomożecie?
  14. Wielkie dzięki za pomoc. Już wszystko hula ;] PS: Jest na tym forum coś typu rep+??
  15. Właśnie mam nadzieję skasować score. Bo ta gra to tak jakby turniej ;P I wielkie dzięki dla ciebie. Teraz wskoczyło. Aha, mam jeszce jedno pytanie - czy przy każdym roomie po zdobyciu 3 goli przejdzie do następnego?? ______________ EDIT: Dlaczego po przejściu do next room nie kasuje się score??
  16. Bo to zrobiłem metodą drag&drop, czy jakoś tak :P... Tutaj całe info o piłeczce: GML Information about object: obj_ball Sprite: spr_ball Solid: false Visible: true Depth: 0 Persistent: false Parent: <no parent> Mask: <same as sprite> Create Event: execute code: if (global.goal ==3){ // Jezeli strzelono 3 gole room_goto_next(); // Przechodzi do nastepnego roomu } Collision Event with object obj_bramka: bounce not precisely against solid objects Collision Event with object obj_linia_bramkowa: set the score relative to 1 jump to the start position start moving in directions 000010000 with speed set to 0 Collision Event with object obj_defender-dol: set the number of lives relative to -1 jump to the start position start moving in directions 000010000 with speed set to 0 Collision Event with object obj_linia boiska-pion: bounce not precisely against solid objects Collision Event with object obj_linia_boiska-poziom: bounce not precisely against solid objects Collision Event with object obj_goalkeeper: set the number of lives relative to -1 jump to the start position start moving in directions 000010000 with speed set to 0 Keyboard Event for Keypad 1 Key: start moving in directions 100000000 with speed set to 2 Keyboard Event for Keypad 2 Key: start moving in directions 010000000 with speed set to 2,5 Keyboard Event for Keypad 3 Key: start moving in directions 001000000 with speed set to 2 Keyboard Event for Keypad 4 Key: start moving in directions 000100000 with speed set to 2,5 Keyboard Event for Keypad 5 Key: start moving in directions 000010000 with speed set to 0 Keyboard Event for Keypad 6 Key: start moving in directions 000001000 with speed set to 2,5 Keyboard Event for Keypad 7 Key: start moving in directions 000000100 with speed set to 2 Keyboard Event for Keypad 8 Key: start moving in directions 000000010 with speed set to 2,5 Keyboard Event for Keypad 9 Key: start moving in directions 000000001 with speed set to 2
  17. Tzn.?? Wpisałem ten, który podałeś, ale bez 1-szej i ostatniej linijki: if (gol==3){ // Jezeli strzelono 3 gole room_goto_next(); // Przechodzi do nastepnego roomu }
  18. No jak dawałem do Create obj_ball'a to tak samo wywalało... :|
  19. Siemka znowu. Niestety nie wiem dlaczego po wklejeniu kodu do eventa Create (obj_ball), przy włączeniu gry wywala error, że nieznana zmienna: goal... PS: Jeżeli chodzi o wynik to mam go na pasku (tym u góry okna) i pisze w nim: goal .
  20. No mam wklepane, że pod wpływem kolizji jest +1, ale moglibyście mi dokładniej to wytłumaczyć? Chodzi mi o to, gdzie wkleić te kody, itp. :]
  21. Siemka, Od niedawna zajmuję się pracą w GM i mam pewien problem. Chodzi o przejście z jednego room'u do drugiego. W mojej grze chodzi o wyminięcie obrońców i wejście piłką do bramki :P. I tutaj pojawia się problem. Chciałbym, aby po zdobyciu 3 goli zmienił się room na następny(tak parę razy, gdyż ta gra będzie tak jakby levelowa :P). Napisałby mi może ktoś skrypt, który odzwierciedlałby tą funkcję? Z góry ThX!!!
×
×
  • Dodaj nową pozycję...