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.

Cara Bikin Pintu

3 posters

Go down

Cara Bikin Pintu Empty Cara Bikin Pintu

Post by Pinneaple Studios Sun 27 Jan 2013, 07:24

Maksudku misalnya nih ya kan playernya keluar room,misalnya lewat kiri,ntar hilang,terus ke room lain dengan direction yang sama? gimana?
Pinneaple Studios
Pinneaple Studios
GM Intermediate
GM Intermediate

100%
Jumlah posting : 839
Points : 980
Join date : 06.01.13
Age : 22
Lokasi : Depok :D

Kembali Ke Atas Go down

Cara Bikin Pintu Empty Re: Cara Bikin Pintu

Post by Asuna Sun 27 Jan 2013, 10:34

object playernya dibikin persistent, atau nilai directionnya disimpan di variable global.player_direction
Asuna
Asuna
Global Moderator
Global Moderator

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

Kembali Ke Atas Go down

Cara Bikin Pintu Empty Re: Cara Bikin Pintu

Post by Pinneaple Studios Sun 27 Jan 2013, 17:31

kurang ngerti Question Mata Belo Hammer
Pinneaple Studios
Pinneaple Studios
GM Intermediate
GM Intermediate

100%
Jumlah posting : 839
Points : 980
Join date : 06.01.13
Age : 22
Lokasi : Depok :D

Kembali Ke Atas Go down

Cara Bikin Pintu Empty Re: Cara Bikin Pintu

Post by Kevin Blaze Coolerz Sun 27 Jan 2013, 18:54

di object properties kan ad tulisan Visible, Solid, dan Persistent (ad di bawah Nama Object), nah kamu centang Persistentnya

lalu kalo udah nyenggol pintu, pake kode ini:

Code:
obj_char.x = XX
obj_char.y = YY
room_goto(NamaRoom)
Kevin Blaze Coolerz
Kevin Blaze Coolerz
Admin
Admin

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

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

Kembali Ke Atas Go down

Cara Bikin Pintu Empty Re: Cara Bikin Pintu

Post by Pinneaple Studios Sun 27 Jan 2013, 19:03

bukan,maksudnya misalnya aku keluar room terus keluar ke room lain tapi kaya gini
Pinneaple Studios
Pinneaple Studios
GM Intermediate
GM Intermediate

100%
Jumlah posting : 839
Points : 980
Join date : 06.01.13
Age : 22
Lokasi : Depok :D

Kembali Ke Atas Go down

Cara Bikin Pintu Empty Re: Cara Bikin Pintu

Post by Kevin Blaze Coolerz Sun 27 Jan 2013, 19:19

Flash_2D_Studios wrote:bukan,maksudnya misalnya aku keluar room terus keluar ke room lain tapi kaya gini

kalo char ny persistent maka posisi & direction char ny akan tetap
Kevin Blaze Coolerz
Kevin Blaze Coolerz
Admin
Admin

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

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

Kembali Ke Atas Go down

Cara Bikin Pintu Empty Re: Cara Bikin Pintu

Post by Asuna Sun 27 Jan 2013, 20:04

that's true, kalo pake persistent harus ada penanganan lagi buat char, so aku saranin cara keduaku tadi, yang pake variable global.player_direction..
jadi, selengkapnya codenya kaya gini..

event saat obj_char buka pintu:
Code:
global.player_newx = 50
global.player_newy = 30 //posisi baru player di room berikutnya
global.player_direction = direction
room_goto(NamaRoom)

event saat obj_char memasuki room lain (event create):
Code:
x = global.player_newx
y = global.player_newy
direction = global.player_direction

(note: obj_char tidak persistent)
Asuna
Asuna
Global Moderator
Global Moderator

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

Kembali Ke Atas Go down

Cara Bikin Pintu Empty Re: Cara Bikin Pintu

Post by Pinneaple Studios Tue 29 Jan 2013, 15:43

w bilang gk pake pintu
kaya game yang dibuat greyzebra itu!
Pinneaple Studios
Pinneaple Studios
GM Intermediate
GM Intermediate

100%
Jumlah posting : 839
Points : 980
Join date : 06.01.13
Age : 22
Lokasi : Depok :D

Kembali Ke Atas Go down

Cara Bikin Pintu Empty Re: Cara Bikin Pintu

Post by Asuna Tue 29 Jan 2013, 16:29

sorry I'm wrong Hammer
maksud w saat memasuki posisi buat pindah room ._.
Asuna
Asuna
Global Moderator
Global Moderator

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

Kembali Ke Atas Go down

Cara Bikin Pintu Empty Re: Cara Bikin Pintu

Post by Pinneaple Studios Fri 15 Feb 2013, 17:08

duh akhirnya ngarti
-lock deh-
Pinneaple Studios
Pinneaple Studios
GM Intermediate
GM Intermediate

100%
Jumlah posting : 839
Points : 980
Join date : 06.01.13
Age : 22
Lokasi : Depok :D

Kembali Ke Atas Go down

Cara Bikin Pintu Empty Re: Cara Bikin Pintu

Post by Asuna Fri 15 Feb 2013, 17:21

it's my privilege xP

Solved = Locked
Asuna
Asuna
Global Moderator
Global Moderator

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

Kembali Ke Atas Go down

Cara Bikin Pintu Empty Re: Cara Bikin Pintu

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