| [GM] gimana cara bikin menu? | |
|
|
Pengirim | Message |
---|
Saladin Newbie
Posts : 37 Thanked : 0 Engine : Other Skill : Very Beginner Type : Developer
| Subyek: [GM] gimana cara bikin menu? 2011-08-28, 15:28 | |
| kk.. aku mau nanya,, gimana cara bikin menu dan juga status dari gambar/resources yang kita buat sendiri... yang aku tau cuma yang pake teks aja... plis.. yg tau... maaf g bsa kasih contoh gambar... soalnya masih new member , g bisa posting link klo belom 7 hari | |
|
| |
Vsio Xutix Xox
Posts : 2377 Thanked : 18 Engine : Multi-Engine User Skill : Advanced Type : Developer
| Subyek: Re: [GM] gimana cara bikin menu? 2011-08-28, 17:29 | |
| | |
|
| |
bungatepijalan Moe Princess
Posts : 1487 Thanked : 30 Engine : Multi-Engine User Skill : Intermediate Type : Developer
Trophies
Awards: | Subyek: Re: [GM] gimana cara bikin menu? 2011-08-28, 17:35 | |
| Pengen yang kaya gini kah?
- Spoiler:
http://www.indojpg.com/images/249_u_.png
| |
|
| |
Saladin Newbie
Posts : 37 Thanked : 0 Engine : Other Skill : Very Beginner Type : Developer
| Subyek: Re: [GM] gimana cara bikin menu? 2011-08-28, 17:51 | |
| @vsio iya.. pake array kan... tapi aku bisanya nampilin menu cuma berupa teks... kalo aku mau bikin menu pake grafik buatanku sendiri gimana ya? @btj ya.. seperti itu... tapi kotaknya aku yg buat sendiri gitu | |
|
| |
Vsio Xutix Xox
Posts : 2377 Thanked : 18 Engine : Multi-Engine User Skill : Advanced Type : Developer
| Subyek: Re: [GM] gimana cara bikin menu? 2011-08-28, 18:08 | |
| @Saladin: Sama kok.
Kayak gini contohnya:
- Code:
-
draw_sprite(sprite_Begin, 0, 200, loc_y[0]); draw_sprite(sprite_Continue, 0, 200, loc_y[1]); draw_sprite(sprite_Exit, 0, 200, loc_y[2]);
draw_sprite(sprite_Arrow, 180, loc_y[index_panah]); | |
|
| |
bungatepijalan Moe Princess
Posts : 1487 Thanked : 30 Engine : Multi-Engine User Skill : Intermediate Type : Developer
Trophies
Awards: | Subyek: Re: [GM] gimana cara bikin menu? 2011-08-28, 18:16 | |
| Tambah lagi, buat kursor menunya: Create Event: - Code:
-
idx = 0; Step Event: - Code:
-
if(keyboard_check_pressed(vk_down)){ idx = (idx+1) mod 3; } if(keyboard_check_pressed(vk_up)){ idx = (idx-1+3) mod 3; } Draw Event: - Code:
-
draw_sprite(sprite_cursor, 0, 200, loc_y[idx]); | |
|
| |
Saladin Newbie
Posts : 37 Thanked : 0 Engine : Other Skill : Very Beginner Type : Developer
| Subyek: Re: [GM] gimana cara bikin menu? 2011-08-28, 18:36 | |
| @vsio & btj oh iya.. aku agak ngerti ... tapi.. bisa diperjelas gak script gmlnya... aku masih bau kencur di dunia script gml | |
|
| |
redlagart Advance
Posts : 342 Thanked : 5 Engine : Multi-Engine User Skill : Intermediate Type : Artist
Trophies
Awards: | Subyek: Re: [GM] gimana cara bikin menu? 2011-08-29, 07:54 | |
| http://gmc.yoyogames.com/index.php?showtopic=487444 << try this gan...
mungkin lebih mudah kalo dengan sample...
selamat mencoba... | |
|
| |
Saladin Newbie
Posts : 37 Thanked : 0 Engine : Other Skill : Very Beginner Type : Developer
| Subyek: Re: [GM] gimana cara bikin menu? 2011-08-29, 09:23 | |
| @redlagart wah makasih kk! bener bener simple tapi kalo sekedar copas aku bisa... aku ingin ngerti maksud script di dalamnya.. ada yg bisa ngejelasin script itu satu satu? terutama dibagian controlled menu, bagian for maaf minta yg macem" aku masih newbie dan buta gml | |
|
| |
Vsio Xutix Xox
Posts : 2377 Thanked : 18 Engine : Multi-Engine User Skill : Advanced Type : Developer
| |
| |
Saladin Newbie
Posts : 37 Thanked : 0 Engine : Other Skill : Very Beginner Type : Developer
| Subyek: Re: [GM] gimana cara bikin menu? 2011-08-29, 09:50 | |
| bagian ini aja kk.. tolong - Code:
-
for(i=0;i<menu_options;i+=1) { if(i!=menu_select) draw_sprite_ext(menu[i,0],0,x,yy,0.7,0.7,0,c_white,1); else { draw_sprite(menu[i,0],0,x,yy); if(keyboard_check_pressed(vk_space)) execute_string(menu[i,1]); draw_text(x+sprite_get_width(spr_play)/1.7,yy-7,menu[i,2]); } yy+=sprite_get_height(spr_play);
| |
|
| |
bungatepijalan Moe Princess
Posts : 1487 Thanked : 30 Engine : Multi-Engine User Skill : Intermediate Type : Developer
Trophies
Awards: | |
| |
Saladin Newbie
Posts : 37 Thanked : 0 Engine : Other Skill : Very Beginner Type : Developer
| Subyek: Re: [GM] gimana cara bikin menu? 2011-08-29, 19:49 | |
| @bunga maksud aku , aku minta dijelasih tentang script for itu.. biar aku ngerti jadi biar g cuma sekedar copas aja soalnya klo udah ngerti kan aku bisa ngembangin kk tolong dijelasin mengenai script yg kukasih tadi y | |
|
| |
bungatepijalan Moe Princess
Posts : 1487 Thanked : 30 Engine : Multi-Engine User Skill : Intermediate Type : Developer
Trophies
Awards: | Subyek: Re: [GM] gimana cara bikin menu? 2011-08-29, 20:54 | |
| | |
|
| |
Saladin Newbie
Posts : 37 Thanked : 0 Engine : Other Skill : Very Beginner Type : Developer
| Subyek: Re: [GM] gimana cara bikin menu? 2011-08-30, 15:52 | |
| @bunga iya,, itu script draw,, tapi aku g ngerti kk syntax? aku g paham C/C++ kk aku ngertinya Php itu dapet dari kk redlagart... dari forum gmc | |
|
| |
bungatepijalan Moe Princess
Posts : 1487 Thanked : 30 Engine : Multi-Engine User Skill : Intermediate Type : Developer
Trophies
Awards: | |
| |
Saladin Newbie
Posts : 37 Thanked : 0 Engine : Other Skill : Very Beginner Type : Developer
| Subyek: Re: [GM] gimana cara bikin menu? 2011-08-30, 18:37 | |
| tapi gak sekomplex gml kayakny deh php ku jga masih newbie yudh deh kk, tolong summon dia | |
|
| |
Sponsored content
| Subyek: Re: [GM] gimana cara bikin menu? | |
| |
|
| |
| [GM] gimana cara bikin menu? | |
|