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.

[Intermediate-advanced] Object_add

+8
zebrakelabu
Arif_IndoFuture
Agan
Riza_Farhandi
HaNIFU
Asuna
adityaandar
Kevin Blaze Coolerz
12 posters

Halaman 2 dari 2 Previous  1, 2

Go down

[Intermediate-advanced] Object_add - Page 2 Empty Re: [Intermediate-advanced] Object_add

Post by Zihad Rizky Edwin Fikri Mon 14 Oct 2013, 15:27

Ntar return = obj_new?
Kalo gitu apa gunanya object_get_name kalo udah tau namanya wkwkwkw?
Zihad Rizky Edwin Fikri
Zihad Rizky Edwin Fikri
GM Beginner
GM Beginner

55%
Jumlah posting : 409
Points : 431
Join date : 12.05.13
Age : 26
Lokasi : jaktim

Kembali Ke Atas Go down

[Intermediate-advanced] Object_add - Page 2 Empty Re: [Intermediate-advanced] Object_add

Post by Kevin Blaze Coolerz Mon 14 Oct 2013, 19:15

obj_new itu ID ny, bukan nama object ny
Kevin Blaze Coolerz
Kevin Blaze Coolerz
Admin
Admin

100%
Jumlah posting : 3323
Points : 3795
Join date : 06.01.13
Age : 29
Lokasi : Palembang

http://kevin-blaze-coolerz.blogspot.com/

Kembali Ke Atas Go down

[Intermediate-advanced] Object_add - Page 2 Empty Re: [Intermediate-advanced] Object_add

Post by Zihad Rizky Edwin Fikri Mon 14 Oct 2013, 20:01

Terus ntar returnnya jadi apa?
Zihad Rizky Edwin Fikri
Zihad Rizky Edwin Fikri
GM Beginner
GM Beginner

55%
Jumlah posting : 409
Points : 431
Join date : 12.05.13
Age : 26
Lokasi : jaktim

Kembali Ke Atas Go down

[Intermediate-advanced] Object_add - Page 2 Empty Re: [Intermediate-advanced] Object_add

Post by Asuna Mon 14 Oct 2013, 20:43

bedalah, obj_new itu nomor id nya, sedangkan object_get_name itu string namanya Hammer
Asuna
Asuna
Global Moderator
Global Moderator

100%
Jumlah posting : 1711
Points : 1901
Join date : 10.01.13

Kembali Ke Atas Go down

[Intermediate-advanced] Object_add - Page 2 Empty Re: [Intermediate-advanced] Object_add

Post by Kevin Blaze Coolerz Mon 14 Oct 2013, 20:45

__newobjectX

X = nilai, id object universal. (obj yg pertama kali di create ID nya 1)
Kevin Blaze Coolerz
Kevin Blaze Coolerz
Admin
Admin

100%
Jumlah posting : 3323
Points : 3795
Join date : 06.01.13
Age : 29
Lokasi : Palembang

http://kevin-blaze-coolerz.blogspot.com/

Kembali Ke Atas Go down

[Intermediate-advanced] Object_add - Page 2 Empty Re: [Intermediate-advanced] Object_add

Post by Zihad Rizky Edwin Fikri Mon 14 Oct 2013, 21:44

Sip dah
Zihad Rizky Edwin Fikri
Zihad Rizky Edwin Fikri
GM Beginner
GM Beginner

55%
Jumlah posting : 409
Points : 431
Join date : 12.05.13
Age : 26
Lokasi : jaktim

Kembali Ke Atas Go down

[Intermediate-advanced] Object_add - Page 2 Empty Re: [Intermediate-advanced] Object_add

Post by Game Maker Newbie Mon 21 Oct 2013, 14:07

Subeventnya Mouse Gk Ada ?? Kalo Gk Ada Cara Buat Event Mouse Left Pressed Gimana ?? Bingung 
Game Maker Newbie
Game Maker Newbie
GM Beginner
GM Beginner

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

http://ydahlimu.blogspot.com

Kembali Ke Atas Go down

[Intermediate-advanced] Object_add - Page 2 Empty Re: [Intermediate-advanced] Object_add

Post by Kevin Blaze Coolerz Mon 21 Oct 2013, 14:23

sekiranya pake ini: Very Happy

Code:
ev_left_press
Kevin Blaze Coolerz
Kevin Blaze Coolerz
Admin
Admin

100%
Jumlah posting : 3323
Points : 3795
Join date : 06.01.13
Age : 29
Lokasi : Palembang

http://kevin-blaze-coolerz.blogspot.com/

Kembali Ke Atas Go down

[Intermediate-advanced] Object_add - Page 2 Empty Re: [Intermediate-advanced] Object_add

Post by Game Maker Newbie Mon 21 Oct 2013, 15:04

gk bisa Sad
Code:
object_event_add(close,ev_mouse,ev_left_press,'game_end();')
Game Maker Newbie
Game Maker Newbie
GM Beginner
GM Beginner

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

http://ydahlimu.blogspot.com

Kembali Ke Atas Go down

[Intermediate-advanced] Object_add - Page 2 Empty Re: [Intermediate-advanced] Object_add

Post by Kevin Blaze Coolerz Mon 21 Oct 2013, 18:58

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)
Kevin Blaze Coolerz
Kevin Blaze Coolerz
Admin
Admin

100%
Jumlah posting : 3323
Points : 3795
Join date : 06.01.13
Age : 29
Lokasi : Palembang

http://kevin-blaze-coolerz.blogspot.com/

Kembali Ke Atas Go down

[Intermediate-advanced] Object_add - Page 2 Empty Re: [Intermediate-advanced] Object_add

Post by Game Maker Newbie Mon 21 Oct 2013, 20:28

Pake
object_event_add(close,ev_draw,0,'draw_sprite_stretched(closespr,1,room_width-18,2,16,16)')
Gk Bisa Ya ??
Game Maker Newbie
Game Maker Newbie
GM Beginner
GM Beginner

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

http://ydahlimu.blogspot.com

Kembali Ke Atas Go down

[Intermediate-advanced] Object_add - Page 2 Empty Re: [Intermediate-advanced] Object_add

Post by Kevin Blaze Coolerz Mon 21 Oct 2013, 21:28

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:

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
}
Kevin Blaze Coolerz
Kevin Blaze Coolerz
Admin
Admin

100%
Jumlah posting : 3323
Points : 3795
Join date : 06.01.13
Age : 29
Lokasi : Palembang

http://kevin-blaze-coolerz.blogspot.com/

Kembali Ke Atas Go down

[Intermediate-advanced] Object_add - Page 2 Empty Re: [Intermediate-advanced] Object_add

Post by Sponsored content


Sponsored content


Kembali Ke Atas Go down

Halaman 2 dari 2 Previous  1, 2

Kembali Ke Atas


 
Permissions in this forum:
Anda tidak dapat menjawab topik