Game Development Community

Moving Objects

by M. Sadik Yildiz · in Technical Issues · 08/05/2008 (4:15 am) · 3 replies

[!!! Newbie Warning !!!]

I need to move Static Shape Objects from one marker to another one. How can i do that?

About the author

Recent Threads


#1
08/05/2008 (11:42 am)
If you move a TSStatic on the server through setTransform it will move on the server but not on the client, because its just not setup to. If you look at the code you will see that the reason it moves on both when you drag it around in the editor is because TSStatic::inspectPostApply (which occurs after an object is modified in the editor) does "setMaskBits(advanceStaticOptionsMask)", the result of which is that the new position is sent to the client in packupdate. So.. If you want to move it from script on the server and have its new position sent to the client you might add setMaskBits(advanceStaticOptionsMask) to the bottom of TSStatic::setTransform.
#2
08/05/2008 (11:49 pm)
[!!! Newbie Warning !!!]

Actually, I don't know so much how the engine is working. Can u explain me, exactly what i need to do. Or maybe u can advice a full resource.

Thanks for your help James!
#3
08/05/2008 (11:58 pm)
You do not appear to own the sdk so i cannot post C++ for you or in this forum. That's as clear a description as I can give without writing out the code.

If this isn't a continuous movement but just an occasional relocation you could accomplish this in script using setTransform on the server side object and commandToClient to have the client set the client side TSStatic's transforms. But I don't know if that's what you need, or if you need it to continuously move.