Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - harryzun

Pages: 1
1
Extensions / Scaling Utilites (Optimize Pixel Art and More!)
« on: August 05, 2014, 08:18:05 pm »
Scaling Utilities
Tools for Scaling Actors in Stencyl

Finally, a way to reliably work with pixel art at any size! Scale tiny pixel art graphics to fit any theme or purpose, and most importantly, at no cost to functionality.

However, this isn't only for pixel art. Basically, this extension fixes the unreliable scaling system that Stencyl currently has in place. It allows you to scale actors and easily manipulate those actors once they've been scaled. It gives you access to many properties for scaled actors that are either incorrect or missing from the default blocks. See the documentation for screenshots and more details.

Scaling is especially useful for pixelated retro games, allowing you to import artwork smaller than 1x, and scaling it up later to save space. Note: you should have anti-aliasing turned off when you upscale pixel art. You can turn it off in the game settings.

It has only been tested on Flash and iOS, but it should work on all platforms.

7 New Blocks!

Action Blocks
  • Set Scale by Percent
  • Set Scale by Size

Normal / Value Blocks
  • Get Scale Percent
  • Get Size
  • Get Coordinate
  • Offset Coordinate
  • Is Scaled? (Boolean)


Additional Links

Based loosely on a StencylForge behavior by Rob1221.

2
Ask a Question / Coordinates don't update when actor is scaled
« on: July 31, 2014, 10:23:04 am »
I'm working on a game with pixel art. To save space, I'm trying to import the actor animations at their original size and the scaling them up 9x.

Whenever I scale an actor, its X and Y coordinates never update, even though scaling moves the actor's top left corner. The coordinates are set somewhere inside the actor, where the top left corner of the 1x (unscaled) actor would have been. This affects positioning the actor in the scene, as well as drawing in the actor space (any action that involves the actor's coordinates).

Is this a bug? Or is this somehow the way it was intended to work? I can't imagine I am supposed to manually offset the coordinates for each actor I scale.

I've attached some screenshots and a log showing what happens when I try to draw something at (0 ,0) on a scaled actor.

3
Ask a Question / Coordinates don't update when actor is scaled
« on: July 30, 2014, 12:17:53 pm »
EDIT: I wrote an extension that addresses this issue. You can find it here.

I'm working on a game with pixel art. To save space, I'm trying to import the actor animations at their original size and the scaling them up 9x.

Whenever I scale an actor, its X and Y coordinates never update, even though scaling moves the actor's top left corner. The coordinates are set somewhere inside the actor, where the top left corner of the 1x (unscaled) actor would have been. This affects positioning the actor in the scene, as well as drawing in the actor space (any action that involves the actor's coordinates).

Is this a bug? Or is this somehow the way it was intended to work? I can't imagine I am supposed to manually offset the coordinates for each actor I scale.

I've attached some screenshots and a log showing what happens when I try to draw something at (0 ,0) on a scaled actor.

4
Old Questions (from 1.x/2.x) / More Than Eight Sound Channels
« on: July 09, 2012, 10:44:22 am »
Is there any way I can use more than eight sound channels in iOS without it crashing?

Pages: 1