 |
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
Onlyoneinall Bug finder
Joined: 16 Jul 2005 Posts: 746
|
Posted: Tue Sep 23, 2008 11:43 pm Post subject: Speed 20 and moving objects |
|
|
There seems to be some issues when I use the speed 20 and have NPCs move.
I basically want two NPCs to thrust up and down at the same time as if they were one whole object. Basically I want it to move really fast, and speed 10 doesn't cut it.
So, the script basically goes like this
Code: |
walk (0,south,2)
walk (1,south,2)
wait for npc (0)
walk (0,north,1)
walk (1,north,1)
wait for npc (0)
walk (0,south,1)
walk (1,south,1)
wait for npc (0)
|
(Note that walk is a shortcut script for walk NPC()
Anyway, on speed 10, this script works fine. The block moving will look like this as it thrusts:
X
O
Unfortunately, change it to speed 20, and the block goes nuts.
O
X
It'll look like that.
And when it's supposed to move up, the X and O overlap as only the X moves back up to where it should be.
I don't have obstruction or anything suspended either. This only happens at speed 20.
It doesn't appear to be an illusion either, because when I had it stop and wait for a while, the block looked like
O
X
and when both were supposed to move up, it looked like this
OX (overlap)
X
O
and then back at normal speed, it looked fine again.
What's going on? How do I fix this problem? If screenshots are required to make it easier, I will post. Thanks. _________________ http://www.castleparadox.com/gamelist-display.php?game=750 Bloodlust Demo 1.00
 |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed Sep 24, 2008 8:50 am Post subject: |
|
|
When two NPCs move towards each other at speed 20, I think they will pass through each other... or maybe one will pass through, but the other will collide. I am pretty certain that suspending NPC obstruction would avoid the problem, but that would probably cause a whole mess of other problems.
I suggest that you avoid this problem by not using the walk NPC command at all. Instead use the set NPC position command. You will also need NPC X and NPC Y commands.
Also, instead of wait for NPC you will just use wait(1) |
|
Back to top |
|
 |
Onlyoneinall Bug finder
Joined: 16 Jul 2005 Posts: 746
|
Posted: Wed Sep 24, 2008 5:22 pm Post subject: |
|
|
Ironically, NOT having suspend obstruction caused it to have problems. After I suspended it, it ran perfectly! Thanks!
I should mention that the circumstances allow it so that suspend obstruction isn't a problem for me. _________________ http://www.castleparadox.com/gamelist-display.php?game=750 Bloodlust Demo 1.00
 |
|
Back to top |
|
 |
Chenzi User was banned for this post

Joined: 02 Aug 2003 Posts: 190 Location: Grand Rapids, MI
|
Posted: Fri Sep 26, 2008 2:10 pm Post subject: |
|
|
James Paige wrote: | When two NPCs move towards each other at speed 20, I think they will pass through each other... or maybe one will pass through, but the other will collide. I am pretty certain that suspending NPC obstruction would avoid the problem, but that would probably cause a whole mess of other problems.
|
Congratulations James. You broke physics. _________________ Allow me to preemptively disclose that I probably hate the person posting below, including myself. |
|
Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|