![]() |
this.wont work...
I am making a agent who walks across the level then i want it to look like another agent walks across when the first is done, so i used this script:
PHP Code:
|
Well, you need to check it when the npc is moving... Here's how!
HTML Code:
function onMove() |
Quote:
this is my whole script: PHP Code:
|
Haven't tried it, but showcharacter NPCs are about 2 tiles wide and x/y are from the top-left corner. So it's probably 2 tiles further along x than you think.
Try if (this.x > 61){ } |
Quote:
|
PHP Code:
|
Quote:
|
I guess redo the move after he's warped to the otherside of the level?
|
Fixed, just missed out a bracket and didn't spell scheduleevent correctly!
|
What's stopping you people from just using move()? And setting a temp ran for x and keeping him at the same y?
|
what?
|
| All times are GMT +2. The time now is 09:55 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.