Miika Posted December 30, 2016 Share Posted December 30, 2016 Hello there, I could never figure out myself proper way to make markers bouncing like in vanilla gta sa. I have tried moveObject in clientside but doesn't seem to work well. Anyone having ideas, what functions I should use in order to create bouncing arrow marker? Link to comment
bosslorenz Posted December 30, 2016 Share Posted December 30, 2016 What bounce do you mean, bouncing up down only or bouncing that changes x, y? Link to comment
Miika Posted December 30, 2016 Author Share Posted December 30, 2016 7 hours ago, bosslorenz said: What bounce do you mean, bouncing up down only or bouncing that changes x, y? Up and down Link to comment
aka Blue Posted December 30, 2016 Share Posted December 30, 2016 Modify the z position with math.min and math.max in render. Link to comment
myonlake Posted December 30, 2016 Share Posted December 30, 2016 moveObject has an easing parameter, use that to get a bouncing effect. If you want to make it completely custom (which is unnecessary), you can use onClientPreRender in conjunction with interpolateBetween and setElementPosition. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now