Haeba u batla ho iketsetsa papali ea hau ka k'homphieutha, joale u lokela ho ithuta ho sebetsa le mananeo a ikhethileng bakeng sa ho etsa lipapali. Mananeo a joalo a lumella hore u bōpe litšoantšo, hula lipapali le ho li etsetsa liketso. Ha e le hantle, ena ha se lenane lohle la menyetla. Re tla tšohla mokhoa oa ho bopa papali ho e 'ngoe ea mananeo ana - Moetsi oa Game.
Game Maker ke e 'ngoe ea mananeo a bonolo le a ratoang ka ho fetisisa bakeng sa ho bapala lipapali tsa 2D. Mona o ka etsa lipapali ho sebelisa sebopeho sa dragnnrop kapa sebelisa puo ea GML e hahiloeng (re tla sebetsa le eona). Game Maker ke eona e molemo ka ho fetisisa bakeng sa ba qalang ho hlahisa lipapali.
Mohala Game Maker mahala
Joang ho kenya Game Maker
1. Latelang kgokahanyo e ka hodimo mme u ee ho websaete ea molao ea lenaneo. U tla isoa leqepheng la mahala la moo u ka fumanang phetolelo e sa lefelloeng lenaneong - Free Download.
2. Joale u lokela ho ngolisa. Kenya lintlha tsohle tse hlokahalang mme u ee lebokoseng la poso moo lengolo la tiiso le tla tla. Latela kgokahanyo mme u kenelle akhaonteng ea hau.
3. Joale u ka kopitsa papali eo.
4. Empa ha se tsohle. Lenaneo leo re le romelitseng, feela ho le sebelisa le hloka lengolo la tumello. Re ka e fumana mahala bakeng sa likhoeli tse peli. E le ho etsa sena, leqepheng le le leng leo u ileng ua kopitsa papali ka lona, lethathamong la "Add License", fumana Amazon tab le tobetsa konopo ea "Tlanya mona" e bapileng.
5. Fensetereng e butsoang, u lokela ho kena ka akhaonto ea hau ho Amazon kapa ue bōpe, ebe u kena.
6. Hona joale re na le senotlolo seo o ka se fumanang ka tlaase ho leqephe le le leng. Kopitsa eona.
7. Re feta mokhoa o tloaelehileng oa ho kenya lisebelisoa.
8. Ka nako e ts'oanang, setopo se tla re fa ho kenya GameMaker: Player. Kenya. Motho ea bapalang o hloka ho bapala lipapali.
Sena se tlatsa tlhomamiso mme re tsoelapele ho sebetsa le lenaneo.
Mokhoa oa ho sebelisa Game Maker
Etsa lenaneo. Karolong ea boraro re kenya konopo ea laesense eo re e kopitsitseng, 'me ka bobeli re kenya login le password. Joale qala hape lenaneo. O sebetsa!
E-ea Thabeng e Ncha 'me u thehe morero o mocha.
Joale bopa sprite. Tlanya ka ho le letona sethathamong sa Sprites, ebe o bopa Sprite.
Mo fane ka lebitso. E-ba sebapali mme o tobetsa Edit Sprite. Fensetere e tla buleha moo re ka fetolang kapa ho bopa sprite. Bopa sprite e ncha, boholo bo ke ke ba fetoha.
Hona joale tobetsa habeli sprite e ncha. Ka mohlophisi o bulehileng re ka fumana sprite. Ka nako eo re hula sebapali, mme haholo-holo - tanka. Boloka setšoantšo sa rona.
Ho etsa setšoantšo sa tanka ea rona, kopitsa 'me u kopanye setšoantšo ka lik'hamphani tsa Ctrl + C le Ctrl + V, ka ho latellana,' me u hule boemo bo fapaneng ba popane bakeng sa eona. U ka etsa likopi tse ngata kamoo u ratang kateng. Litšoantšo tse ngata, li thahasellisa haholoanyane lipapali.
Hona joale o ka kenya letšoao ka pel'a pono ea pele. U tla bona litšoantšo tse bōpiloeng 'me u ka fetola lebelo la foreimi. Boloka setšoantšo 'me u se behe ka ho sebelisa konopo ea Centre. Boitšoaro ba rona bo lokile.
Ka mokhoa o ts'oanang, re hloka ho hlahisa li-sprites tse ling tse tharo: sera, lerako le projectile. A re bitseng sera, lerako le bullet ka tsela e ts'oanang.
Hona joale o hloka ho bopa lintho. Linthong tab, tobetsa ka ho le letona 'me khetha Khetha ntho. Joale bōpa ntho bakeng sa sprite e mong le e mong: ob_player, ob_enemy, ob_all, ob_bullet.
Hlokomela!
Ha u etsa ntho ea lerako, sheba lebokose le haufi le Tšepe. Sena se tla etsa hore lerako le tiee 'me litanka li se ke tsa khona ho feta.
E-ea boima. Bula ntho ea ob_player mme u ee tabeng ea Taolo. Etsa ketsahalo e ncha ka konopo ea Add Event mme khetha Khetha. Hona joale tobetsa ka ho nepahetseng ho Execute Code.
Fensetereng e butsoeng, u lokela ho ngolisa liketso life tanka ea rona e tla li etsa. A re ngotseng melaetsa ena:
hp = 10;
dmg_time = 0;
Etsa ketsahalo ea Mohato ka tsela e ts'oanang 'me u ngole khoutu ea eona:
haeba keyboard_check_released (litaelo ('W')) {{speed = 0;} haeba mouse_check_button_pressed (mb_left)image_angle = phuthollo (x, y, mouse_x, mouse_y);
haeba keyboard_check (ord ('W')) {{e- = 3};
haeba keyboard_check (taolo ('S')) {{+} = 3};
haeba keyboard_check (ord ('A')) {x- = 3};
haeba keyboard_check (ord ('D')) {{+ + = 3};
haeba keyboard_check_released (litaelo ('S')) {{speed = 0;}
haeba keyboard_check_released (litaelo ('A')) {{speed = 0;}
haeba keyboard_check_released (litaelo ('D')) {{speed = 0;}
{
ka mohlala_create (x, y, ob_bullet) {speed = 30; tataiso = tlhaloso (ob_player.x, ob_player.y, mouse_x, mouse_y);}
}
Kenya ketsahalo ea ho thulana - ho thulana le lerako. Khoutu:
x = ho hlakile;
y = e hlakileng;
Hape u eketsa ho thulana le sera:
haeba dmg_time <= 0
{
hp- = 1
dmg_time = 5;
}
dmg_time - = 1;
Etsa ketsahalo:
Joale eketsa Mohato oa Bohato-Bofelo:draw_self ();
draw_text (50,10, khoele (hp));
haeba hp <= 0
{
show_message ('Game over')
kamore ea mohaho ();
};
haeba mohlala_number (ob_enemy) = 0
{
show_message ('Tlhōlo!')
kamore ea mohaho ();
}
Kaha joale re fetile le sebapali, e-ea ho ntho ea ob_nemy. Kenya Kopa ketsahalo:
r = 50;
tataiso = khetha (0,90,180,270);
lebelo = 2;
hp = 60;
Joale a re ke re ekelletse Mohato ho ea ho mokha:
haeba hole_to_object (ob_player) <= 0
{
tataiso = tlhaloso (x, y, ob_player.x, ob_player.y)
lebelo = 2;
}
ho seng joalo
{
haeba r <= 0
{
tataiso = khetha (0,90,180,270)
lebelo = 1;
r = 50;
}
}
image_angle = tataiso;
r- = 1;
Mohato oa ho Qetela:
haeba hp <= 0 mohlala_destroy ();
Etsa Ketsahalo e senyang, e-ea tab ea ho hula le ntho e 'ngoe, tobetsa letšoao le ho phatloha. Hona joale, ha u bolaea sera, ho tla ba le liphoofolo tse phatlohang.
Ho thulana - ho thulana le lerako:
tataiso = - tataiso;
Ho thulana - ho thulana le projectile:
hp- = mokoloko o mongata (10.25)
Kaha lerako ha le etse liketso leha e le life, re tsoela pele ho ntho ea ob_bullet. Kenya tlhōlo ea ho thulana le sera:
mohlala_destroy ();
Le ho thulana le lerako:
mohlala_destroy ();
Qetellong, bopa lekala la 1. Re kopa ka ho toba Room -> Etsa Kamore. E-ea linthong tabo ebe u taka 'mapa oa boemo ka ho sebelisa ntho ea Wall. Ebe u eketsa sebapali se seng le lira tse ngata. Lebelo le lokile!
Qetellong re ka qala papali eo 'me ra e hlahloba. Haeba u latela litaelo, joale ha hoa lokela ho ba le likokoana-hloko.
Ke tsohle. Re shebile mokhoa oa ho bopa papali ka khomphuteng ea hau, mme u na le maikutlo a lenaneo le kang Game Maker. Tsoela pele ho ntshetsa pele mme haufinyane o tla khona ho etsa lipapali tse thahasellisang le tse phahameng haholo.
Lehlohonolo!
Mohala Game Maker ho sebaka sa molao
Bona hape: Lisebelisoa tse ling tsa ho etsa lipapali