![]() |
Functions during move()
Is there any way to do some functions while an NPC is going through a move(), synchronized with every time it moves it's x and y?
|
Quote:
|
Quote:
|
I'm not sure if move() updated the x and y continually or only when it reaches the end, but you could do like:
PHP Code:
Set it up like an equation PHP Code:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
PHP Code:
|
What are you doing that needs what you're looking for?
I know with Boats on Zodiac I just move in smaller intervals, and check for control input before it's next move. |
Walls, players, water, etc.
I asked Chompy if he knew a way, and he did say to try simulating the movement and doing the checks in that, but it doesn't seem to work exactly like how I want it. |
Quote:
|
Quote:
|
All times are GMT +2. The time now is 10:54 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.