[Intermediate-advanced] Object_add
+8
zebrakelabu
Arif_IndoFuture
Agan
Riza_Farhandi
HaNIFU
Asuna
adityaandar
Kevin Blaze Coolerz
12 posters
Halaman 2 dari 2
Halaman 2 dari 2 • 1, 2
Re: [Intermediate-advanced] Object_add
Ntar return = obj_new?
Kalo gitu apa gunanya object_get_name kalo udah tau namanya wkwkwkw?
Kalo gitu apa gunanya object_get_name kalo udah tau namanya wkwkwkw?
Zihad Rizky Edwin Fikri- GM Beginner
-
Jumlah posting : 409
Points : 431
Join date : 12.05.13
Age : 26
Lokasi : jaktim
Re: [Intermediate-advanced] Object_add
Terus ntar returnnya jadi apa?
Zihad Rizky Edwin Fikri- GM Beginner
-
Jumlah posting : 409
Points : 431
Join date : 12.05.13
Age : 26
Lokasi : jaktim
Re: [Intermediate-advanced] Object_add
bedalah, obj_new itu nomor id nya, sedangkan object_get_name itu string namanya
Asuna- Global Moderator
-
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13
Re: [Intermediate-advanced] Object_add
__newobjectX
X = nilai, id object universal. (obj yg pertama kali di create ID nya 1)
X = nilai, id object universal. (obj yg pertama kali di create ID nya 1)
Zihad Rizky Edwin Fikri- GM Beginner
-
Jumlah posting : 409
Points : 431
Join date : 12.05.13
Age : 26
Lokasi : jaktim
Re: [Intermediate-advanced] Object_add
Subeventnya Mouse Gk Ada ?? Kalo Gk Ada Cara Buat Event Mouse Left Pressed Gimana ??
Re: [Intermediate-advanced] Object_add
gk bisa
- Code:
object_event_add(close,ev_mouse,ev_left_press,'game_end();')
Re: [Intermediate-advanced] Object_add
- Code:
close=object_add()
object_event_add(close,ev_mouse,ev_left_press,'game_end()')
object_set_sprite(close,spr_tombol)
if object_exists(close) && !instance_exists(close)
instance_create(100,100,close)
Re: [Intermediate-advanced] Object_add
Pake
object_event_add(close,ev_draw,0,'draw_sprite_stretched(closespr,1,room_width-18,2,16,16)')
Gk Bisa Ya ??
object_event_add(close,ev_draw,0,'draw_sprite_stretched(closespr,1,room_width-18,2,16,16)')
Gk Bisa Ya ??
Re: [Intermediate-advanced] Object_add
itu utk draw,, draw dgn set sprite beda lho :Pkalo set sprite (misal: 32x32) dan kmu draw sprite 300x300, maka yg cma bisa di klik cma bagian 32x32 ny doank. coba tes kalo gk percaya.
dan kalo kmu gk pasang sprite, ya gk bsa di klik, kecuali kmu pke script ini:
dan kalo kmu gk pasang sprite, ya gk bsa di klik, kecuali kmu pke script ini:
- Code:
if mouse_x>=x && mouse_x<x+32 && mouse_y>=y && mouse_y<y+32
{
di klik,, ini utk ukuran 32x32, ubah nilai di atas utk ganti
}
Halaman 2 dari 2 • 1, 2
Halaman 2 dari 2
Permissions in this forum:
Anda tidak dapat menjawab topik