Mystic Software Forums

Mystic Software => General Discussion => Topic started by: dankad on October 16, 2005, 07:22:09 AM

Title: (no subject)
Post by: dankad on October 16, 2005, 07:22:09 AM
Heres my story.

i want to make a house that you can organise, so i want to make items that you can move around by walking into them.

for example


i have an item on the tile 9x,5y but i want to move it to 18x,19y how would i do that?
Title: (no subject)
Post by: Xorlak on October 16, 2005, 01:02:08 PM
I did this a few times in my games.  Basically I set up an item (in slot 1 in this case) that ran a program when the player ran into the item:

Code: [Select]
#wait(a$)
#if(a$~=""){#wav("Pushing_sound.wav")}
#if(a$="RIGHT"){#pushitem(1,"e")}
#if(a$="LEFT"){#pushitem(1,"w")}
#if(a$="DOWN"){#pushitem(1,"s")}
#if(a$="UP"){#pushitem(1,"n")}

You can probably remove the #'s for TK3.
Title: (no subject)
Post by: dankad on October 17, 2005, 08:59:06 PM
Thanks that works, except the program doesn't work, why?
Title: (no subject)
Post by: Dude Man on October 18, 2005, 02:29:17 PM
Make sure the number, in the #pushitem(#,"$") part is the item that you want to be moved, so say for exsample if you put a pushable item in slot 5 then you must put down.

Code: [Select]
#wait(a$)
#if(a$~=""){#wav("Pushing_sound.wav")}
#if(a$="RIGHT"){#pushitem(5,"e")}
#if(a$="LEFT"){#pushitem(5,"w")}
#if(a$="DOWN"){#pushitem(5,"s")}
#if(a$="UP"){#pushitem(5,"n")}

I am asuming that, that was the problom.