Thx for your top job !
I was wondering : how can you change fxTime in a someScreen.lua file ?
Do you plan zoom in / out transitions ?
Thx [import]uid: 9328 topic_id: 5194 reply_id: 305194[/import]
Thx for your top job !
I was wondering : how can you change fxTime in a someScreen.lua file ?
Do you plan zoom in / out transitions ?
Thx [import]uid: 9328 topic_id: 5194 reply_id: 305194[/import]
No you can’t at present as it’s defined as local to the director class.
It might be a nice idea if Richardo changed the various transition functions so that you could pass in the fxTime.
Ricardo? [import]uid: 9371 topic_id: 5194 reply_id: 17236[/import]
I can create a function to change these variables, no problem about that.
Try this at director.lua file:
function director:changeFxTime ( newFxTime )
if type(newFxTime) == "number" then
fxTime = newFxTime
end
end
To use it:
director:changeFxTime ( 500 )
director:changeScene("screenN","fade")
[import]uid: 8556 topic_id: 5194 reply_id: 17400[/import]
Thanks, saves changing all the other functions. Could you please add it to 1.2 also - ta [import]uid: 9371 topic_id: 5194 reply_id: 17459[/import]
Sure! [import]uid: 8556 topic_id: 5194 reply_id: 17463[/import]
Great ! I ask a question, you not only give an answer, you give a solution !
Many thx [import]uid: 9328 topic_id: 5194 reply_id: 17628[/import]