Dester
-
Postów
316 -
Dołączył
-
Ostatnia wizyta
-
Wygrane w rankingu
2
Typ zawartości
Profile
Forum
Wydarzenia
Odpowiedzi opublikowane przez Dester
-
-
Mam paint.net, mam aseprite, oba są świetne :) Dzięki
-
paint.net
Genialne. Jeszcze nigdy nie widziałem programu w którym "magiczna różdżka" działała by tak dobrze. :thumbsup: :thumbsup:
-
...Programu, który działa tak jak sprite editor w game makerze. Albo painta z przezroczystym tłem.
-
jak wstawiam powiedzmy gif ustawiam ze ma być szybkoś pomiedzy zdj 1 ( room ma 30)
a jak daje do roomu to zapierdziela jak niewiem ( jak to naprawic )?
Jeśli chodzi ci o tę prędkość w edytorze sprita, to ona jest tylko do podglądu.
-
Odłącz monitor, błąd zniknie od razu :like:
-
Różnica jest taka, że w jego kodzie przejdzie Ci tylko do następnego roomu przy 10 punktach
Nic nie przejdzie. Błąd w kodzie. Powinno być tak:
GMLif global.punkty == -10{
room_goto(nazwa_roomu)
}
-
Do póki znów się samo nie zepsuje co? :thumbsup:
Dokładnie :D
-
Jak na razie działa, dzięki <3
-
Poza tym po samym skopiowaniu już widzę że masz solidnie popieprzone znaki. To też może być powodem błędu jeżeli ty myślisz że masz gdzieś spację a kompilator będzie widział inny znak.
Nie rozumiem?
-
GMLkeyboard_check(0x44)
Kiego uja tak sobie życie utrudniać :D?
A da się łatwiej? Bo to na górze wcale tak nie brzmi ^^^^
-
keyboard_check() jako parametr przyjmuje stałe albo kod ASCII klawisza.
keyboard_check() jako wartość zwraca boolean true/false w zależności czy klawisz jest teraz wciśnięty czy nie.
I popieram że brak tu logiki. Sprawdzasz warunek, który wykona się tylko gdy warunek wcześniej się wykona, i o ile wcześniejszy się wykona. Zrobiłeś tutaj zagnieżdżony AND a chyba chodziło Ci o OR.
Ten kod wcześniej działał. Nic nie zmieniłem.
Nowy kod
GMLif(reloading==1 or firing==1 or knife==1){exit;
}
if(keyboard_check(0x57)==false and keyboard_check(0x44)==false and keyboard_check(0x53)==false){
walksprite=0;
if(item==""){
sprite_index=player_idle;
exit;
}
if(item=="rifle"){
sprite_index=player_rifleidle;
exit;
}
if(item=="pistol"){
sprite_index=player_pistolidle;
exit;
}
}
Error at line 6 pos 21: Symbol , or ) expected.
-
pomijając błąd
Wolałbym nie..
Jak już musisz narzekać to pomóż poprawić :c
-
GML//RELEASE A
if(reloading==1 or firing==1 or knife==1){
exit;
}
if(keyboard_check(0x57)==0){
if(keyboard_check(0x44)==0){
if(keyboard_check(0x53)==0){
walksprite=0;
if(item==""){
sprite_index=player_idle;
exit;
}
if(item=="rifle"){
sprite_index=player_rifleidle;
exit;
}
if(item=="pistol"){
sprite_index=player_pistolidle;
exit;
}
}
}
}
ERROR at line 7 pos 21: Symbol , or ) expected.
7:
GMLif(keyboard_check(0x57)==0){ -
Piękne. Grałbym.
-
człowiek c++, pół człówiek, pół c++
-
w sumie jakby ktos chcial z grafika pomoc to chetnie xD
Jeśli chodzi o grafikę w stylu retro, to ja chętnie pomogę. Mogę ci zrobić w takim samym rozmiarze sprity tylko ładniejsze :)
-
Setki razy sobie wmawiałem że błędy są winą GM- ale zawsze wychodziło że to mój błąd po prostu.Klocki to strata czasu
Powtórzę jeszcze raz. Błędy same się stworzyły kiedy otworzyłem projekt.
-
Jeśli chcesz nadać prędkość stworzonemu obiektowi, to robisz takGMLvar b=instance_create(x,y,obj); //przypisujesz id obiektu do zmiennej tymczasowej
Robiłem coś takiego w lua od 2 lat i na to nie wpadłem...
Jak masz kod to można znaleźć w czym jest błąd. Na klockach nie bardzo.I tak wiadomo że to wszystko wina gma
To, że błędy same z siebie się tworzą po otwarciu projektu nie jest normalne
...
Przerobię na kod...
-
Czy zamiana całego eventu na kod by pomogła?
-
GMLsprite_index=
ok
exit event to nie rozumiem co masz na myśliBloczek o nazwie exit event. Z dużym iksem.
GMLinstance_createTo wiem i używam, ale jak przypisać mu prędkość z tego skryptu?
-------------------------
Pomożesz z tymi błędami?
-
Ale dlaczego bloczki?
Bo nie wiem jakie funkcje odpowiadają [Change Sprite] i [Exit Event] >.<
I tworzenie poruszajacego sie obiektu
-
Otwieram projekt w GMS.
Pojawia się okno.
Error in Object player, Event Key Release A-key, Action 9: Symbol , or ) expected. Error in Object player, Event Key Release A-key, Action 11: Symbol , or ) expected. Error in Object player, Event Key Release A-key, Action 13: Symbol , or ) expected. Error in Object player, Event Key Release D-key, Action 9: Symbol , or ) expected. Error in Object player, Event Key Release D-key, Action 11: Symbol , or ) expected. Error in Object player, Event Key Release D-key, Action 13: Symbol , or ) expected. Error in Object player, Event Key Release S-key, Action 9: Symbol , or ) expected. Error in Object player, Event Key Release S-key, Action 11: Symbol , or ) expected. Error in Object player, Event Key Release S-key, Action 13: Symbol , or ) expected. Error in Object player, Event Key Release W-key, Action 9: Symbol , or ) expected. Error in Object player, Event Key Release W-key, Action 11: Symbol , or ) expected. Error in Object player, Event Key Release W-key, Action 13: Symbol , or ) expected.
To są bloczki, i jestem pewien że nie ma w nich żadnych błędów
Key Release Event for A-key Key: if reloading is equal to 1 exit this event if firing is equal to 1 exit this event if keyboard_check(0x57) is equal to 0 if keyboard_check(0x44) is equal to 0 if keyboard_check(0x53) is equal to 0 if knife is equal to 0 set variable walksprite to 0 if item is equal to "" set the sprite to player_idle with subimage 0 and speed 1 exit this event if item is equal to "pistol" set the sprite to player_pistolidle with subimage 0 and speed 1 exit this event if item is equal to "rifle" set the sprite to player_rifleidle with subimage 0 and speed 1 exit this event Key Release Event for D-key Key: if reloading is equal to 1 exit this event if firing is equal to 1 exit this event if keyboard_check_pressed(0x41) is equal to 0 if keyboard_check_pressed(0x57) is equal to 0 if keyboard_check_pressed(0x53) is equal to 0 if knife is equal to 0 set variable walksprite to 0 if item is equal to "" set the sprite to player_idle with subimage 0 and speed 1 exit this event if item is equal to "pistol" set the sprite to player_pistolidle with subimage 0 and speed 1 exit this event if item is equal to "rifle" set the sprite to player_rifleidle with subimage 0 and speed 1 exit this event Key Release Event for S-key Key: if reloading is equal to 1 exit this event if firing is equal to 1 exit this event if keyboard_check_pressed(0x41) is equal to 0 if keyboard_check_pressed(0x57) is equal to 0 if keyboard_check_pressed(0x44) is equal to 0 if knife is equal to 0 set variable walksprite to 0 if item is equal to "" set the sprite to player_idle with subimage 0 and speed 1 exit this event if item is equal to "pistol" set the sprite to player_pistolidle with subimage 0 and speed 1 exit this event if item is equal to "rifle" set the sprite to player_rifleidle with subimage 0 and speed 1 exit this event Key Release Event for W-key Key: if reloading is equal to 1 exit this event if firing is equal to 1 exit this event if keyboard_check_pressed(0x41) is equal to 0 if keyboard_check_pressed(0x44) is equal to 0 if keyboard_check_pressed(0x53) is equal to 0 if knife is equal to 0 set variable walksprite to 0 if item is equal to "" set the sprite to player_idle with subimage 0 and speed 1 exit this event if item is equal to "pistol" set the sprite to player_pistolidle with subimage 0 and speed 1 exit this event if item is equal to "rifle" set the sprite to player_rifleidle with subimage 0 and speed 1 exit this event
-
Brzmi ciekawie, daj screeny albo coś.
-
:sick:
e: Triplepost :oops:
Kilka zmian na forum
w Informacje od ekipy GMCLAN
Opublikowano
Podoba mi się :)
Obecni!