![]() |
Need A script HELP!
OK I am tinkering with my level editing skills I can design really nice levels but my scripting lacks and that is a part of level editing SO to get to the point I need the script to make a door like the one in training that slides if anyone could help I would be greatfully greatful :D :D :D
|
[ Delph Inc. ]
Oh my god! I would thought to have never seen such a thing...Stefan asking for help to script a door. I think you should ask your other personality...I think it would be much easier. But for the time being: NPC Code: I'm not even sure if that works :( I haven't scripted one in ages :D |
Quote:
|
[ Delph Inc. ]
Here's the code which was used in the exe This part is placed in the Unixmad character: NPC Code: This is in the gate: NPC Code: |
do not use a gani
use ther simple command move x,y,dx,dy |
suppose
but if you made set a flag while it was moving and only allow the moving to work if the flag was unset this should solve the problem |
aww ok you win :(
|
Quote:
When you drop the money, it moves (DUH), but you lay more money, and it moves farther, and farther, untill you can't even possibly see it. Like Kai says, use a gani, or have it move back after the player goes through. -Rebel95 |
use the debugger in the tutorial levels house
|
Quote:
All you have to add then is: if (playerlaysitem&&x in |20,25|) I'm not sure of the exact value but you can change it to fit easily. |
| All times are GMT +2. The time now is 10:04 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.