Ok I have character walking grapics...but when I use the grapics my character is always walking...I have a still grapic...how would I get my grapic to swich to the still grapic when I not moving...
ID:180791
Feb 15 2001, 5:22 pm
|
|
In response to Darkness
|
|
On 2/15/01 7:41 pm Darkness wrote:
On 2/15/01 7:22 pm Darkness wrote: in the icon editor right clcik on the the icon you're using and select edit state. A box will come up select the the box that has movement state written next to it. |
In response to HaVoC
|
|
Ok it works but after a few steps he stays in his still state...is it a bug of can I stop this some how?
|
In response to Darkness
|
|
On 2/15/01 8:15 pm Darkness wrote:
Ok it works but after a few steps he stays in his still state... is it a bug Nope, it is designed to equal how fast you're moving. If you go 1 tile per 0.1 seconds, it turns off smooth movement to make it look smoother. There's logic in that, believe me. While at 10 FPS it is not very smooth, it makes it look less jumpy than if it were trying to smooth move differently. or can I stop this some how? Yep, you can insert a movement delay to limit speeds below 1 turf per 0.1 seconds. mob/var/last_move = 0 mob/var/move_delay = 3 mob/Move() if(world.time > src.last_move + src.move_delay) return else src.last_move = world.time return ..() //do what mob/Move() normally does This prevents players from going faster than 1 turf per 0.3 seconds. Just so everyone knows, smooth movement was added a year or so ago as an afterthought; it was not initially part of the BYOND software suite. For that reason, it isn't as refined as programs that were designed to have it from the conception. [edited] Considering the circumstances, I figure they did an excellent job of implementing it, despite the subtle problems. Which really are extremely subtle. |
In response to Spuzzum
|
|
Ok thanks...but when I put this script in my game I can't move at all...I put the script exactly how you put it up there...game runs but I can't move.
|
In response to Darkness
|
|
Here's the easyest, fastest, most reliable, 10 second fix.
Use the walking graphic. Go to the graphic and right click on it where you made it in the icon panel and choose edit state Put a check ,ark in the box that says Move state. Now there should be an M beside your graphic. Now try it. |
In response to karver
|
|
No...I know how to do that...when I put the script that Spuzzum gave me in my character doesn't move...why?
|
In response to Darkness
|
|
On 2/16/01 5:03 pm Darkness wrote:
No...I know how to do that...when I put the script that Spuzzum gave me in my character doesn't move...why? Try changing the comparison operator so it reads if(world.time < bla bla bla) I.e., change > to <. I've re-coded that same code snippet about 5 times, and each time that comparison gets me! |
In response to Guy T.
|
|
This is what I have...
mob/var/last_move = 0 mob/var/move_delay = 3 mob/Move() if(world.time < src.last_move + src.move_delay) return else src.last_move = world.time return ..() when I compile and run this I see just a black screen...why dI always have troble with this! |
In response to Darkness
|
|
On 2/16/01 6:44 pm Darkness wrote:
This is what I have... Set last_move to -100 initially. Then it should work. |
Ok let me put this a little clearer...lets say in DBZ Spar you character stands still when your not moving...when you move you character walks...my character is always walking even when I'm not moving how do I stop this?