-
Postów
134 -
Dołączył
-
Ostatnia wizyta
Typ zawartości
Profile
Forum
Wydarzenia
Odpowiedzi opublikowane przez Rewlisz
-
-
Może to ci pomorze: http://www.gmclan.org/index.php?czytajart=36.
-
Przykład jazdy karetki:
Zapomniałem chyba dodać odejmowanie od zaznaczenia. Ale wystarczy, że w Global Mouse Left Buttton dasz:
GMLglobal.zazn=0;. -
Nikt za ciebie całej gry nie zrobi, więc lepiej nie proś o takie rzeczy.
Zrobiłem ci przykład żyć wrogów:
-
Teraz użyłem takiego kodu:
<?php if( $_POST['plec']='Kobieta') { echo 'Przyszła '.$_POST['imie'].' do lekarza...'; } else if( $_POST['plec']='Mężczyzna') { echo 'Przyszedł '.$_POST['imie'].' do lekarza...'; } ?>
Ale i tak nie działa. A sprawdzaniem czy coś się wpisało zajmę się potem.
-
Dlaczego mi ten kod nie działa?
<?php if( $_POST['imie'] ) { if( $_POST['plec']=0) { echo 'Przyszła '.$_POST['imie'].' do lekarza...'; } else if( $_POST['plec']=1) { echo 'Przyszedł '.$_POST['imie'].' do lekarza...'; }} ?>
-
Mam stworzony formularz z wyborem opcji (rozwijane menu) i nie wiem jak zwraca wybraną pozycję?
-
Znam tamtą stronę ale i tak nic nie znalazłem.
To mój kod na godzinę:
data = new Date(); godzina = data.getHours()+1; minuta = data.getMinutes()+1; sekunda = data.getSeconds()+1; document.write(godzina+":"+minuta+":"+sekunda);
-
Thx, nie wiedziałem.
Edit:
Nie chciałem nabijać nowego tematu to napisałem w tym. A jak odświeżać datę? Bo zrobiłem kod na wyświetlanie godziny i chcę aby cały czas zmieniała się godzina.
-
Oto mój kod kalendarza:
var data = new Date(); var dzien_miesiaca = data.getDate(); var dzien = data.getDay(); var dzien_tygodnia = ""; var num_miesiac = data.getMonth(); var miasiac = ""; var rok = data.getYear(); switch(dzien){ case 0: dzien_tygodnia="Niedziela"; break case 1: dzien_tygodnia="Poniedziałek"; break case 2: dzien_tygodnia="Wtorek"; break case 3: dzien_tygodnia="Środa"; break case 4: dzien_tygodnia="Czwartek"; break case 5: dzien_tygodnia="Piątek"; break case 6: dzien_tygodnia="Sobota"; } switch(num_miesiac){ case 0: miesiac="Styczeń"; break case 1: miesiac="Luty"; break case 2: miesiac="Marzec"; break case 3: miesiac="Kwiecień"; break case 4: miesiac="Maj"; break case 5: miesiac="Czerwiec"; break case 6: miesiac="Lipiec"; break case 7: miesiac="Sierpień"; break case 8: miesiac="Wrzesień"; break case 9: miesiac="Październik"; break case 10: miesiac="Listopad"; break case 11: miesiac="Grudzień"; } document.write(dzien_tygodnia+" "+dzien_miesiaca+" "+miesiac+" "+rok);
I mi wyświetla prawie wszystko ale dziwnie rok. Oto co mi wypisuje:
Dlaczego 108 a nie 2008?Sobota 26 Lipiec 108 -
A jakie jest zdarzenie puszczenia kliknięcia?Już umiem.
-
Usunąłem return ale i tak nie działa.
-
Mam taki kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <title>Brak obrazka</title> <script> function error{ return(document.write("Brak pliku!")); }</script> </head> <body> <img src="obraz1.gif" onerror="error()"> </body> </html>
Nie dałem obrazka. Powinno wyświetlić napis Brak pliku! ale nie robi tak. Co zrobiłem źle?
-
Chcę się nauczyć w Java Script jak używać metod. Przykładowo chcę się dowiedzieć jak sprawdzić czy nie da się załadować obrazka. Jeżeli się nie da go załadować to jest uruchamiana funkcja error. Bardzo proszę o ten przykład.
-
Thx Tymon, działa.
-
Na wielu stronach można zauważyć obok adresu strony jej ikonę(np. GMClan.org, ikona Game Makera). Chciałbym się dowiedzieć jak zamieścić taką ikonę na stronie ?
-
Ustaw w Global Game Settings funkcje "Start in full-screen mode".
I wybierz typ "Fixed scale (in %)".
-
Ja trochę umiem PHP ale nie wiem czy JS ma to samo co PHP i jeszcze więcej. Bo jeżeli za pomocą JS mogę zrobić logowanie itp. to wole JavaScript.
-
Zrobiłem ci przykład: Kliknij na mnie !
Nie dałem tylko chodzenia po drabinkach.
-
Chcę zacząć się uczyć tworzenia lepszych stron www (bardziej dynamicznych) itp. Opanowałem do tej pory HTML i CSS a teraz chce nauczyć się nowego języka. Jaki jest lepszy?
-
The display
The display represents the whole area on the monitor. It has a size (typically 1024x768, or 1280x1024), a color depth, that is, the number of bits that are used to represent a single pixel (typically 16 = High Color or 32 = Full Color) and a refresh frequency, that is, the number of times per second the display is refreshed (typically between 60 and 120). These settings can normally be changed though the display properties. For games though, in particular when they run in full-screen mode, it is important to be able to change these settings. All these settings can be initialized for the game in the Game Settings. For use during game play the following functions exist. Note though that changing the settings during game play will result in a time delay as things has to be rebuilt. The functions to set the mode are only available in the Pro Edition.
display_get_width() Returns the width of the display in pixels.
display_get_height() Returns the height of the display in pixels.
display_get_colordepth() Returns the color depth in bits.
display_get_frequency() Returns the refresh frequency of the display.
display_set_size(w,h) Sets the width and height of the display in pixels. Returns whether this was successful. (Realize that only certain combinations are allowed.)
display_set_colordepth(coldepth) Sets the color depth. In general only 16 and 32 are allowed values. Returns whether successful.
display_set_frequency(frequency) Sets the refresh frequency for the display. Only few frequencies are allowed. Typically you could set this to 60 with a same room speed to get smooth 60 frames per second motion. Returns whether successful.
display_set_all(w,h,frequency,coldepth) Sets all at once. Use -1 for values you do not want to change. Returns whether successful.
display_test_all(w,h,frequency,coldepth) Tests whether the indicated settings are allowed. It does not change the settings. Use -1 for values you do not want to change. Returns whether the settings are allowed.
display_reset() Resets the display settings to the ones when the program was started.
Sometimes it is useful to get information about the position of the mouse on the display or to change this position. For this the following functions exist:
display_mouse_get_x() Returns the x-coordinate of the mouse on the display.
display_mouse_get_y() Returns the y-coordinate of the mouse on the display.
display_mouse_set(x,y) Sets the position of the mouse on the display to the indicated values.
Tu masz wszystko, dwie pierwsze funkcje służą do zwracania rozdzielczości.
-
Tu fajnie, nie mogę się doczekać nowej wersji.
-
Luksor, tego Splash Screena daj jako ikonę w rogu programu tak jak jest w Game Maker 7. Bo tak to trochę to denerwuje.
-
Proszę oto przykład: https://gmclan.org/up4254_11_Zmiana_kierunku.html
-
Znalazłem jakiś błąd: Screen Dlaczego mi nie działają narzędzia ?
Jaki jest najlepszy sposób na zrobienie jazdy przeciwnika?
w Pytania początkujących
Opublikowano
Tak jak w temacie, jaki jest najlepszy sposób na zrobienie jazdy przeciwnika?
Robię grę wyścigową i zrobiłem już jazdę samochodem player'a a teraz robię jazdę przeciwnika. Nie wiem jak by ją zrobić, chodzi mi o najlepszy sposób.