![]() |
i have tried the freeze player and play a gani and make it move when holding a key down but how come it doesn't work
|
Blah:
NPC Code: But anyways, you need to put in the keydown's in a constantly repeating loop, timeout is the best for that. |
Also freezeplayer will not react with warps, so hopefully your use of it will not involve multiple levels.
|
Quote:
|
yes I knew of that, but that can only be used for P2P servers.
|
Yup.
So it's only posible in pay servers right now, except if I can do some research myself... So nblah I'll spend some time digging out .graal files to see if I can find a way of deciphering warps into variables.
|
thanks but
SAY WHAT!?!?!? i have been programing on graal since it's release and well i got kinda cunfused ever since thisspeed came out(kinda dumb aint i) but easily put i just do: if (playerenters) {toweapons -Bomy} if (hasweapon(-Bomy)) {sethead Bomy_visio6.png; disabledefmovement; setani Bomy_idle,;} if ( if (keydown(0)) { y-=0.5; dir = 0; } if (keydown(1)) { x-=0.5; dir = 1; } if (keydown(2)) { y+=0.5; dir = 2; } if (keydown(3)) { x+=0.5; dir = 3; } setani Bomy_walk,; } is that how a basic (very very basic) bomy just the walking part right? |
Quote:
For the keydown part you'll need to use: if (timeout||created) { [keydownstuffhere] timeout=0.05; } Otherwise it won't work. |
Actually....I think the keydown stuff (checking if keys are down) took three lines...then most of it was mathematical based on what keys were down...
Hint: Use an Array NPC Code: You could also have it store how long a key has been down... |
ok so...
if (timeout||created) { if (playerenters) {toweapons -Bomy} if (hasweapon(-Bomy)) {sethead Bomy_visio6.png; disabledefmovement; setani Bomy_idle,;} if ( if (keydown(0)) { y-=0.5; dir = 0; } if (keydown(1)) { x-=0.5; dir = 1; } if (keydown(2)) { y+=0.5; dir = 2; } if (keydown(3)) { x+=0.5; dir = 3; } setani Bomy_walk,; } if (playerisdead){ setani bomy_dead,; timeout=0.05; } |
Darn it that doesnt work either
GRR...EVER SINCE THISSPEED CAME OUT I CANT MAKE ANYTHING!!! |
Ok, here is my version of the bomy script... I made it awhile back but stopped working on it when I discovered non-p2p servers cant use bomy stuff or complex ganis, Ill continue working on it later, and refine the onwall so it is the same as a humans/normal bomies.
NPC Code: There may be stuff I was fooling around with in there too that doesnt work, but it has been tested online and works pretty good. |
Quote:
|
Re: Buhaha
Quote:
|
This is my version..I got alot of problems with it sucha s walking (it sets it to the first animation of bomy_walk each time so it doesn't play full)on horses same and water I got no clue about....Can anyone help with the walking thing?
Quote:
|
To make it work good and be fluid you are going to have to disabledefmovement and set your own movement... I dont see any other way for yours to function accuratly.
|
um...*runs*
So what does disabledfmovemnt do?LikeI tried ur script and I was invis and if it actually showed the bomy (like once) it was flashing alot..
|
example?
Could someone give me an example f making the feet move when the arrow key is pushed?It'd help me out beccause I got no clue where to really start with the feet movement..Except I do got new main bomy script but I ain't no l33t scripter and some of it is just damn confusing!TOO many numbers!@_@
|
Ok, first for the keydown to work best with what you want to do you would either have to freeze the player or disable default movement (animations).
You could make a full functioning script of it with freezeplayer except that freezeplayer makes it so the player doesnt detect anything such as warps... so disabledefmovement must be used, as it turns off the default animations and movement. With that set use something like this as an example of one movement: NPC Code: keydown 0 is up as you should know, and the player moves approximetly 0.5 tiles every timeout which is same as normal... just set your beginning code which disablesdefmovement and sets the player head to a bomy head and a timeout, then add onwall code, and you have basic movement transformation script... oh and what parts of my script didnt work? it should... |
| All times are GMT +2. The time now is 06:24 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.