I can change the scale but only with integers, for my character I like to use floats, because it is really needed! My character needs to be 2.5 from time to time. How do I achieve this in AC?
I tried to write an Action for AC but it took me too long... so I just wrote a very simple script for demonstration purposes, how hard is this to get in Action? It should be very easy, I know.. it's just I almost never script anymore so I have to search everything again to be able to make that Action. But this is what I want to do in a normal AC action:
Thank you, I am making a 2.5D game though, With 2D backgrounds and 3D characters. So I need to scale my 3D character, not a sprite, does this work the same with 3D characters?
Comments
If I still remember this might work.
player.lockScale = true;
player.spriteScale = 0.025;
This code would be placed in an Action's Run() function, as covered here.
If you're working with a 3D character, you just want to change the transform scale:
player.lockScale = true;
player.transform.localScale = new Vector3 (2.5f, 2.5f, 2.5f);