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.


Messages - harryzun

Pages: 1
1
Extensions / Re: Scaling Utilites (Optimize Pixel Art and More!)
« on: July 03, 2015, 01:24:36 pm »
Hey yoplalala, thanks for your suggestions! I'm a little busy at the moment, but I'll look into it soon!

2
Extension Ideas / Re: Label bug when using different scales
« on: August 05, 2014, 10:36:35 pm »
I actually just wrote an extension to address this! Check it out!

http://community.stencyl.com/index.php/topic,34277.0.html

3
Extensions / Re: Scaling Utilites (Optimize Pixel Art and More!)
« on: August 05, 2014, 09:25:17 pm »
No problem! :)

4
Ask a Question / Re: Coordinates don't update when actor is scaled
« on: August 05, 2014, 09:23:05 pm »
No problem!  :)

5
Ask a Question / Re: Coordinates don't update when actor is scaled
« on: August 05, 2014, 08:22:56 pm »
Alright, I put these fixes and much more into an extension. It's been heavily tested and will work for all scales, not just 9x!

Check it out here.

6
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.

7
Ask a Question / Re: Coordinates don't update when actor is scaled
« on: August 05, 2014, 10:02:31 am »
That's a step in the right direction, but I discovered that only works with actors with even dimensions. Because actors with odd dimensions cannot be divided in half evenly, Stencyl actually offsets the coordinates even more.

I'm writing an extension to address this in a clean way.  I'll post it here soon, but as an example, when a 9x scaled actor has an odd width AND height you use this:

8
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.

9
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.

10
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?

11
You're welcome! And if there's anyone who can't access the Pro Forums, all you need to do is download OrientationDetect from the StencylForge.

12
Check out this thread to see how I figured out how to detect the rotation:

http://community.stencyl.com/index.php/topic,10072.new.html#new

13
When will this be fixed?

Pages: 1