problem with prop's location after call moveLoc

Discussion about using Moai SDK - post questions, issues, and ideas here.

Moderators: naturally, seebs

problem with prop's location after call moveLoc

Postby mankichi89 » Fri May 04, 2012 2:55 am

For example:


-- before call moveLoc
prop:getLoc() -- 0, 0

action = prop:moveLoc( 0, 100, 0.5 )
MOAIThread.blockOnAction( action )

-- after call moveLoc
prop:getloc() -- 0, random from 99 - 101

The random number based on the MOAIEaseType using . So i have to save the "wanted coordinate" and call setLoc() after end action. Has anyway to have an "absolute coordinate" after calling moveLoc()?
mankichi89
 
Posts: 8
Joined: Mon Apr 23, 2012 10:30 pm

Return to Moai SDK

Who is online

Users browsing this forum: Bing [Bot] and 3 guests

x