Hey,
I have two problems:
- I want to make dynamic object shows on the screen ( something similar as birds in AssetTest example)
My object has got 8 frames.
local objProps = { name = "smok", x = 100, y = 100, assetName = "smok", width = 60, height = 52, } --objProps.x = 300 objProps.width = 60 objProps.height = 52 local obj = myLevel:createObject("animals", objProps).view obj.speed = math.random(1,4) obj:setSequence("smokFlying") obj:play()
But on the screen show image with different width/height than 60,52 . The size is getting from Assets window in Level Director.
Can I change the size in lua code? (I need few different width/height properties for that kind of object)
- I don’t know how to start move object through the path. This is my properties. I set Follow path and auto start for my image (this is animation waht’s has 8 frames)
I saw PottyBirt example and I put there my image and my bezier path and it works. Maybe I should set some other option I don’t know.
Thanks