Scaling particles on both the x and y axis

Goodnight GamesGoodnight Games NYCMember, PRO Posts: 184
edited May 2012 in Working with GS (Mac)
Is there a way I can scale particles on both the x and y axis? I have objects that aren't perfectly square so everything is getting thrown off.

Best Answers

Answers

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited May 2012
    You can change the self.size.width and self.size.height by a multiple to keep the ratio the same. Are you wanting to re-size graphics while editing your game file or during game play?

    Oh wait, just saw "particles." Hmm... So you're resizing particles and they aren't scaling properly?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Goodnight GamesGoodnight Games NYCMember, PRO Posts: 184
    Basically I have a few blocks that are say 200px wide by 45px height. I want them to leave a small ghost trail behind them. If I change the size to 200px it's a huge square and 45 is a small square, so what I need is basically a rectangle.

    I have a plan b which involves multiple systems laid out across the top but I'd like to avoid the memory drain.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I see what you mean. I can't think of a way except using Spawn Actor behaviors.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Goodnight GamesGoodnight Games NYCMember, PRO Posts: 184
    Ok thanks, plan B it is.
  • Goodnight GamesGoodnight Games NYCMember, PRO Posts: 184
    Yeah that might just be how I'm going to do it. It's either that or I'll make particle systems as big as makes sense then change the offset till it fills up the space.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Goodnight GamesGoodnight Games NYCMember, PRO Posts: 184
    just make the particle "image" the one u want, should work if u make it the right size

    make the image transparent on the bottom 3 quarters so you can make it a big square again
    Oh snap, good call!


    Thanks guys.

Sign In or Register to comment.