Scale (Sprite object extension) (Behaviours)

Discuss Scirra's 2D Asset Store

Post » Fri Sep 15, 2017 10:49 am



Scale (Sprite object extension) — Now for sale in the Scirra Store!
https://www.scirra.com/store/construct2-behaviours/scale-sprite-object-extension-3878

What you buy here?

  • Scale behavior for C2 and C3
  • Capx example

What is Scale behavior?

It's a behavior dedicated for Sprite objects which lets you set, get and compare current Sprite's scale.

How is it different than using the normal scale?

The difference is that Sprite object does not have the Scale expression at all so you can't read the current scale.

With this behavior you can set/get/compare 6 type of scales:

* General scale (by self)

* Width scale (by self)

* Height scale (by self)

* General scale (by image)

* Width scale (by image)

* Height scale (by image)

By self - means that it's a scale based on the initial Sprite size (the dimensions of the instance at it's creation are considered as scale = 1).

By image - means that it's a scale by the Sprite's image/texture size (the image dimensions are considered as scale = 1.

Features

  • 6 types of scales to cover any project needs,
  • Extension to the most commonly used object type - Sprite,
  • Built-in Actions, Conditions & Expressions for all 6 scales manipulation,
  • Super light-weight (nothing is calculated per tick, calculations only on demand)

Warranty

This plugin does not rely on any third party libraries so it will never get outdated or broken.

Note that all of my plugins work with all platforms (including Cocoon Canvas+) unless described otherwise in the description.

I'm a full time programmer, in case of encountering any issues, please send me an email, I'll fix it ASAP!

Want to be notified about updates?

Join my Discord server: https://discord.gg/cjEg45m



Use this topic to leave comments, ask questions and talk about Scale (Sprite object extension)
ImageImageImage
B
27
S
16
G
79
Posts: 1,013
Reputation: 44,245

Return to Scirra Store

Who is online

Users browsing this forum: No registered users and 1 guest