Scripts / [SOLVED] simple animation

Author
Message
IvanKats
3
Years of Service
User Offline
Joined: 28th Jul 2020
Location: Russia
Posted: 10th Aug 2020 19:38
Are there any commands to move an object along the axis and control the speed? Like maybe MoveLeft(e) or MoveX(e)?

The author of this post has marked a post as an answer.

Go to answer
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Aug 2020 19:54
This post has been marked by the post author as the answer.
MoveForward(e,#) and MoveUp(e,#) are the intended methods for this - they are local and speed is based on the frame rate
there's no left/right though so you will have to rotate and move as needed

the other option is to do it yourself with SetPosition(id,x,y,z) and use amen's code to work out the rotations/values and such.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
IvanKats
3
Years of Service
User Offline
Joined: 28th Jul 2020
Location: Russia
Posted: 10th Aug 2020 20:01
Thanks a lot, smallg!
IvanKats
3
Years of Service
User Offline
Joined: 28th Jul 2020
Location: Russia
Posted: 10th Aug 2020 23:43
However these functions don't seem to work. And RotateY works just fine.
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 11th Aug 2020 05:13
You might probably going to need CollisionOff(e)
on those movement calls also **see previous thread**,
and also follow smallg's AlwaysActive = yes suggestion **@ properties**.


Be sure you aren't putting the # --
Do NOT MoveForward(e,#) // probably syntax error anyhow! hehe
DO use MoveForward(e, 83) -- use your own value.
PM

Login to post a reply

Server time is: 2024-04-23 15:07:57
Your offset time is: 2024-04-23 15:07:57