Yog tias koj xav tsim koj qhov kev ua si hauv lub computer, ces koj yuav tsum kawm txog kev ua haujlwm nrog cov kev pabcuam tshwj xeeb rau kev tsim ua si. Cov kev pabcuam zoo li no pub koj los tsim cov cim, kos animations thiab npaj cov yeeb yam rau lawv. Ntawm chav kawm, qhov no tsis yog tag nrho cov npe ntawm cov possibilities. Peb yuav xav txog txoj kev tsim cov kev sib tw hauv ib qho ntawm cov kev pab cuam - Game Maker.
Qus Txiag yog ib qho ntawm cov kev yooj yim thiab nrov tshaj plaws rau kev tsim ua 2D kev ua si. Ntawm no koj tuaj yeem tsim kev ua si siv lub drag'n'drop interface los yog siv hom lus built-in GML (peb mam li ua haujlwm nrog nws). Game Maker yog qhov kev xaiv zoo tshaj rau cov uas nyuam qhuav pib tsim kev ua si.
Download Game Maker dawb
Yuav ua li cas rau nruab Qho Kev Ua Neej
1. Ua raws li qhov txuas saum toj no thiab mus rau qhov chaw website ntawm qhov kev zov me nyuam. Koj yuav tsum tau coj mus rau phab ntawv ces koj nrhiav tau qhov dawb version ntawm qhov kev pab cuam - Dawb download tau.
2. Tam sim no koj yuav tsum sau npe. Sau tag nrho cov ntaub ntawv tsim nyog thiab mus rau hauv chaw xa ntawv uas daim ntawv lees paub yuav tuaj. Ua raws li qhov txuas thiab nkag mus rau hauv koj tus as khauj.
3. Tam sim no koj tuaj yeem download tau qhov kev ua si.
4. Tiamsis tsis yog txhua yam. Qhov kev pab cuam peb downloaded, tsuas siv nws yuav tsum tau ib daim ntawv tso cai. Peb tuaj yeem tau txais nws dawb rau 2 lub hlis. Ua li no, nyob rau tib phab uas koj downloaded qhov kev ua si, hauv "Ntxiv Licenses", nrhiav cov Amazon tab thiab nias rau ntawm "Click here" khawm kom rov qab.
5. Hauv lub qhov rais qhib, koj yuav tsum nkag mus rau hauv koj tus account ntawm Amazon lossis tsim nws, thiab mam li nkag rau hauv.
6. Tam sim no peb muaj qhov tseem ceeb uas koj tuaj yeem pom hauv qab ntawm tib phab ntawv. Luam nws.
7. Peb dhau qhov txheej txheem txhim kho feem ntau.
8. Tib lub sij hawm, tus installer yuav muab peb los txhim kho GameMaker: Player. Nruab nws. Cov neeg uas ua ntawv yuav tsum tau sim ua si.
Qhov no ua tiav qhov kev txhim kho thiab peb npaj mus ua haujlwm nrog lub program.
Yuav ua li cas siv Game Maker
Khiav qhov kev zov me nyuam. Hauv seem peb sau rau qhov tseem ceeb licence uas peb luam, thiab hauv ob peb nkag mus rau tus ID nkag mus thiab tus password. Tam sim no pib dua qhov program. Nws ua haujlwm!
Mus rau New tab thiab tsim ib qhov project tshiab.
Tam sim no tsim lub sprite. Txoj cai-nyem rau ntawm Sprites yam khoom, thiab mam li Ua Sprite.
Muab nws lub npe. Cia nws yog ib tug neeg uas ua ntawv thiab nias Kho Sprite. Lub qhov rais yuav qhib rau qhov uas peb tuaj yeem hloov kho lossis tsim tau lub tshuab ua ke. Tsim ib lub tshiab sprite, qhov loj yuav tsis hloov.
Tam sim no ob npaug nias ntawm lub tshiab sprite. Nyob rau hauv qhib editor peb yuav kos ib sprite. Thaum lub caij no peb tab tom kos duab, thiab ntau dua li - ib lub tank. Txuag peb daim duab.
Ua kom muaj cov animation ntawm peb lub tank, luam thiab paste cov duab nrog cov Ctrl + C thiab Ctrl + V ua ke, ntsig txog, thiab kos ib txoj kab caterpillar sib txawv rau nws. Koj tuaj yeem ua ntau daim ntawv luam raws li koj nyiam. Qhov ntau dluab, nthuav ntau cov animation.
Tam sim no koj tuaj yeem muab tus zuam tso rau hauv pem hauv ntej ntawm kev saib ua ntej. Koj yuav pom cov animation uas tsim thiab koj tuaj yeem hloov tus nqi kwv yees. Tseg cov duab thiab nruab nrab nws siv Center Center. Peb tus cwj pwm yog npaj txhij.
Nyob rau hauv tib txoj kev, peb yuav tsum tsim peb ntau sprites: tus yeeb ncuab, lub phab ntsa thiab cov projectile. Cia peb hu lawv cov yeeb ncuab, cov phab ntsa thiab cov mos txwv.
Tam sim no koj yuav tsum tsim khoom. Ntawm cov khoom tab, txoj cai-nias thiab xaiv Tsim cov khoom. Tam sim no tsim tus kwv rau txhua sprite: ob_player, ob_enemy, ob_wall, ob_bullet.
Mloog zoo!
Thaum tsim ib qho khoom siv phab ntsa, khij lub npov ntawm qhov chaw Solid. Qhov no yuav ua rau phab ntsa khoom thiab cov tso tsheb hlau luam yuav tsis muaj peev xwm dhau los ntawm nws.
Mus rau qhov nyuaj. Qhib cov khoom ob_player thiab mus rau qhov Kev Tswj. Tsim kev tshwm sim tshiab nrog Add Event khawm thiab xaiv Tsim. Tam sim no txoj cai-nias rau Txoj Cai Tswj Tus Kheej.
Nyob rau hauv lub qhov rais qhib, koj yuav tsum sau npe seb peb ua dab tsi ua peb lub tank yuav ua. Cia sau cov kab no:
hp = 10;
dmg_time = 0;
Tsim ib qho kev tshwm sim rau tib yam nkaus thiab sau cov code rau nws:
yog tias keyboard_check_released (ceev ('W')) {speed = 0;} yog tias mouse_check_button_pressed (mb_left)image_angle = point_direction (x, y, mouse_x, mouse_y);
yog keyboard_check (npauj ('W')) {y- = 3};
yog keyboard_check (ord ('S')) {y + = 3};
yog keyboard_check (qhovd ('A')) {x- = 3};
yog keyboard_check (qhovd ('D')) {x + = 3};
yog keyboard_check_released (ceev ('S')) {speed = 0;}
yog tias keyboard_check_released (ceev ('A')) {speed = 0;}
yog keyboard_check_released (ceev ('D')) {ceev = 0;}
{
nrog rau example_create (x, y, ob_bullet) {ceev = 30; kev taw qhia = point_direction (ob_player.x, ob_player.y, mouse_x, mouse_y);}
}
Ntxiv ib qho kev tshwm sim kev sib tsoo - kev sib tsoo nrog ib phab ntsa. Code:
x = xprevious;
y = yprevious;
Thiab kuj ntxiv ib qho kev sib tsoo nrog tus yeeb ncuab:
yog tias dmg_time <= 0
{
hp = = 1
dmg_time = 5;
}
dmg_time - = 1;
Kos kev tshwm sim:
Tam sim no ntxiv cov kauj ruam - Kawg Kauj Ruam:draw_self ();
draw_text (50,10, hlua (hp));
yog hp <= 0
{
show_message ('Kev ua si dhau')
room_restart ();
};
yog example_number (ob_enemy) = 0
{
show_message ('Yeej!')
room_restart ();
}
Tam sim no hais tias peb ua tiav nrog cov neeg uas ua ntawv, mus rau ob yam khoom ob_enemy. Ntxiv ib qho kev tshwm sim:
r = 50;
kev coj = xaiv (0,90,180,270);
kev ceev = 2;
hp = 60;
Tam sim no wb ntxiv Cov kauj ruam mus rau lub zog:
yog hais tias distance_to_object (ob_player) <= 0
{
kev taw qhia = point_direction (x, y, ob_player.x, ob_player.y)
kev ceev = 2;
}
lwm tus
{
yog tias r <= 0
{
kev taw qhia = xaiv (0,90,180,270)
kev ceev = 1;
r = 50;
}
}
image_angle = kev taw qhia;
r = = 1;
Kawg Kauj Ruam:
yog hp <= 0 lom_destroy ();
Ua kom muaj kev tshwm sim kev puas tsuaj, mus rau ntawm daim ntawv kos thiab lwm yam khoom, nias lub icon nrog qhov tawg. Tam sim no, thaum tua tus yeeb ncuab, yuav muaj kev tawg animation.
Kev sib tsoo - kev sib tsoo nrog ib phab ntsa:
kev taw qhia = - kev taw qhia;
Kev sib tsoo - kev sib tsoo nrog ib qhov projectile:
hp- = irandom_range (10.25)
Vim cov phab ntsa tsis ua yeeb yam li cas, peb pib mus rau qhov ob lub chaws. Ntxiv kev sib tsoo sib tsoo nrog tus yeeb ncuab:
instance_destroy ();
Thiab kev sib tsoo nrog ib phab ntsa:
instance_destroy ();
Thaum kawg, tsim ib theem 1. Peb txoj cai nias-> Tsim Chaw. Mus rau hauv cov khoom tab thiab kos ib daim pheem thib siv cov khoom siv phab ntsa. Tom qab ntawd ntxiv ib player thiab ob peb tus yeeb ncuab. Theem npaj txhij!
Thaum kawg peb tuaj yeem pib qhov kev ua si thiab sim nws. Yog tias koj ua raws li cov lus qhia, ces yuav tsum tsis muaj kab.
Qhov ntawd yog txhua yam. Peb ntsia saib yuav ua li cas los tsim ib qho kev ua si rau hauv koj lub computer, thiab koj tau txais ib lub tswv yim ntawm ib qhov kev zov me nyuam zoo li Kev Ua Si. Ntxiv mus tsim thiab sai sai koj yuav muaj peev xwm tsim ntau yam ntxiv thiab zoo ua si.
Hmoov zoo!
Download Game Game tawm ntawm qhov chaw ua si
Saib kuj: Lwm cov software rau kev tsim ua si