Almost. Object 1 gets moved by the player and is clamped between 310 and -1800. Object 2 moves by itself relative to object 1 from 1250 to 410. The percentage of the distance traveled should be the same between the two objects.
Develop games in your browser. Powerful, performant & highly capable.
I'm trying to figure out how to move an objects y axis in relation with another objects y axis. I've been trying to use lerp to do it but I can't get it to work properly. What I'm trying to do is if object 1 Y is 310 then object 2 Y is 1250. And if object 1 Y is -1800 then object 2 Y is 410. That part is easy enough to get to work but I'm having trouble with the math to get everything in between to move correctly. Any help would be much appreciated.
You do not have permission to view this post
So I deleted offline.appache, offline.ja and offlineClient.js and everything updated right away. Are there going to be any ill effects, other then not loading offline?
I think the reason it may not be working is because it's not the newer version with the browser plugin added that is loading, it's still the old one.
Member since 5 Oct, 2013