Author Topic: (no subject)  (Read 1561 times)

dankad

  • Member
  • *
  • Posts: 2
    • View Profile
(no subject)
« 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?
« Last Edit: December 31, 1969, 06:00:00 PM by dankad »

Xorlak

  • Administrator
  • Member
  • *****
  • Posts: 2225
    • View Profile
    • http://darkagegames.net
(no subject)
« Reply #1 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.
« Last Edit: December 31, 1969, 06:00:00 PM by Xorlak »

dankad

  • Member
  • *
  • Posts: 2
    • View Profile
(no subject)
« Reply #2 on: October 17, 2005, 08:59:06 PM »
Thanks that works, except the program doesn't work, why?
« Last Edit: December 31, 1969, 06:00:00 PM by dankad »

Dude Man

  • Member
  • *
  • Posts: 6393
    • View Profile
    • http://dmdgames.mysticsoftware.net//
(no subject)
« Reply #3 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.
« Last Edit: December 31, 1969, 06:00:00 PM by Dude Man »
~Welcome back mysticsoftware.net??
The Black Walkway