[Suggestion] Object Scale Expression

0 favourites
  • 8 posts
From the Asset Store
Add this awesome sound effects to make your visual novel come to life!
  • I noticed that you can Set Scale for objects, but when I want to call upon that scale value - say, when comparing two values - it tells me there's no expression available for it. I'd surely love to see that added. Thanks!

  • Objects don't have a single scale. If it's twice as wide and half as tall, what should the scale return?

  • Ashley - Ah...good point. I didn't think of that. I was having trouble isolating scale values based on what layer the object was on, so it SEEMED to make sense to have a scale value of the object, itself.

    What about an expression that returns the scale that the object is on at that time? I see you put in expressions for the layer name and number, but not the scale value, itself. Could that work?

  • Aren't there already expressions to get that information?

  • Ashley - Eh, kinda. I mean, for the layer, yes. But what I was trying to do was get info about the layer based on the object that is on that layer. (Sorry if that's just making the matter more confusing.)

    Ultimately, I'm working on creating a "smooth zoom" feature as the object moves up and down floors/layers (in a top-down view). Hard to explain now, but I wanted the scale of the object (assuming it was 1) to be the target scale value as the other layers scaled in or out. But I'm coming to a better understanding of scale and layers, etc, so all this is probably amounting to nonsense as I try to explain it. LOL

    I'll be posting a help request, though, because I've got the very thing I was aiming for to work in a test capx, but not in my game, even though I copied it 99% identical (the conditions had to change slightly).

    Thanks for your input!

  • You can give the object a .scale variable, and set that as well when you set the scale. That's what I've been doing.

  • Arima - *facedesk* Once again, another obvious solution evades me.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Happens to all of us. :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)