Jump to content

Recommended Posts

Hello, i'm trying to make my own mod for DS

I'm making a shop for players:

I made .zip animation for shop without pig and added it in game as prefab

As for pigman - i used retextured campfirefire prefab - (it's just only for test, i will do my own fx component and fx prefab in future)

I added burnable component for my shop and used

inst.components.burnable:AddBurnFX("pig_shop_pigman", Vector3(30, -100, -.1), "new_house")
where "new_house" is one of the scene objects in spriter
 
all works fine, but there is one problem:
i have strange dupes of my pigmanFX every time i save and load the game!
 
I also have the same result when i'm trying to use followsymbol with DS items
function Burnable:AddBurnFX(prefab, offset, followsymbol)

For example:

    inst.components.burnable:AddBurnFX("campfirefire", Vector3(0,.4,0), "stones_1" )

in campfire prefab

What's wrong? Could you give me some advance how to prevent self-clonning of my workers?

 

 

 

 

post-772004-0-00586000-1452377806_thumb.

I like the look of it!

 

Do you remove the pigman at the end (e.g. by setting him not persistent)? If not, try it. You should be able to save all data in the actual shop (I guess).

Thank you^^

I have fixed this with your advice, now i'm working on the animations and there is another problem for me: there isn't animations like "idle_loop_side" or "idle_loop_down" for pigs - there is only "idle_loop".

All others animation ("idle_creepy", "idle_happy", "idle_scared", "eat", "hungry") work fine, but with the "idle_loop" my pig is always turned in wrong direction now. How can i reverse him?  

post-772004-0-65305500-1452471874_thumb.

I have tried to use SetRotation and FacePoint on my pigman - but nothing happens
I also experimented with

inst:DoPeriodicTask(0.5, function()     inst.Transform:SetRotation(180 + Math.sin(GetTime())*180)end)

But there is no result too :(

 

My mod is almost done, rotation of the pigman is the last thing to do  :joyous:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...