www.gmindo.web.id/forum
Forum ini sudah tidak dipakai lagi. Silakan ke forum baru di www.gmindo.web.id/forum Very Happy

Terima kasih

Join the forum, it's quick and easy

www.gmindo.web.id/forum
Forum ini sudah tidak dipakai lagi. Silakan ke forum baru di www.gmindo.web.id/forum Very Happy

Terima kasih
www.gmindo.web.id/forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[ASK] Button

4 posters

Go down

[ASK] Button Empty [ASK] Button

Post by Suparman Wed 14 Aug 2013, 21:33

cara makai button untuk play dan exit dan help gmn y? sorry masi newbie
Suparman
Suparman
Newbie
Newbie

100%
Jumlah posting : 7
Points : 4
Join date : 12.08.13
Lokasi : Bumi

Kembali Ke Atas Go down

[ASK] Button Empty Re: [ASK] Button

Post by Game Maker Newbie Wed 14 Aug 2013, 21:51

Di Tutor Tutor GM Kan Ada -_-
Game Maker Newbie
Game Maker Newbie
GM Beginner
GM Beginner

100%
Jumlah posting : 278
Points : 281
Join date : 03.02.13
Age : 20
Lokasi : Sidoarjo

http://ydahlimu.blogspot.com

Kembali Ke Atas Go down

[ASK] Button Empty Re: [ASK] Button

Post by L.M Afrizal R Wed 14 Aug 2013, 23:53

jika perlu spritenya punya 3 subimage yaitu :
1.subimage pada saat button tidak diapa apain
2.subimage pada saat button didekatkan dengan mouse
3.subimage pada saat button ditekan
biasanya button yg kayak begini saya taruh di room yg berbeda dengan room tempat kita main misal nama roomnya rm_mainmenu dan room tempat kita main rm_main.terus bikin deh objectnya.lalu taruh codenya seperti ini

create event
Code:
image_speed = 0
image_index = 0
left pressed
Code:
image_index = 2
alarm[0] = 10
mouse enter
Code:
image_index = 1
mouse leave
Code:
image_index = 0

alarm[0]
Taruhlah event yg saudara inginkan disini.contoh room_goto(rm_main) untuk obj_play
show_info() untuk obj_help
game_end() untuk obj_exit
pake D&D juga gpp Very Happy
L.M Afrizal R
L.M Afrizal R
GM Beginner
GM Beginner

100%
Jumlah posting : 165
Points : 125
Join date : 15.07.13
Age : 25

Kembali Ke Atas Go down

[ASK] Button Empty Re: [ASK] Button

Post by greckminas Thu 15 Aug 2013, 05:24

di sub image :
1 jika tidak ditekan dan tidak di dekatkan
2 jika di dekatkan tapi tidak di tekan
3 jika di tekan dan dikatkan
klo gk mau bingung nih
Create Event
Code:
image_index = 0
image_speed = 0
Step Event
Code:
if position_meeting(mouse_x,mouse_y,nama_obj_button)
{
image_index = 1
image_speed = 0
}
else
{
image_index = 0
image_speed = 0
}
if mouse_check_pressed(mb_left)
{
image_index = 2
image_speed = 0
}
if mouse_check_released(mb_left)
{
image_index = 0
image_speed = 0
}
dan di event mouse left released itu isi script kamu sendiri Very Happy
greckminas
greckminas
GM Beginner
GM Beginner

100%
Jumlah posting : 353
Points : 382
Join date : 09.06.13
Age : 22
Lokasi : Bandung

http://ranggayy.blogspot.com

Kembali Ke Atas Go down

[ASK] Button Empty Re: [ASK] Button

Post by Game Maker Newbie Thu 15 Aug 2013, 08:41

Pake Cara Greckminas Bisa Tapi Ada Yang Salah
Code:

if position_meeting(mouse_x,mouse_y,nama_obj_button)
{
image_index = 1
image_speed = 0
}
else
{
image_index = 0
image_speed = 0
}
if mouse_check_pressed(mb_left) and position_meeting(mouse_x,mouse_y,self)
{
image_index = 2
image_speed = 0
}
if mouse_check_released(mb_left)
{
image_index = 0
image_speed = 0
}
Game Maker Newbie
Game Maker Newbie
GM Beginner
GM Beginner

100%
Jumlah posting : 278
Points : 281
Join date : 03.02.13
Age : 20
Lokasi : Sidoarjo

http://ydahlimu.blogspot.com

Kembali Ke Atas Go down

[ASK] Button Empty Re: [ASK] Button

Post by greckminas Thu 15 Aug 2013, 09:50

Nih klo mau buat button nya
Disini
greckminas
greckminas
GM Beginner
GM Beginner

100%
Jumlah posting : 353
Points : 382
Join date : 09.06.13
Age : 22
Lokasi : Bandung

http://ranggayy.blogspot.com

Kembali Ke Atas Go down

[ASK] Button Empty Re: [ASK] Button

Post by Sponsored content


Sponsored content


Kembali Ke Atas Go down

Kembali Ke Atas

- Similar topics

 
Permissions in this forum:
Anda tidak dapat menjawab topik