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 - rob1221

Pages: 1 ... 3 4 5 6 7 ... 430
Ask a Question / Re: Bug with my autotiling system when I replace a tile
« on: February 04, 2019, 06:04:45 pm »
Do you think this is a Stencyl bug?  To me it just seems like the wrong tile is being selected.

After creating a new certificate I'm getting the same error now so something seems to be broken related to newly created certificates using the later versions of JDK 8.  I don't think the certificates themselves are the problem.

Update: changing my minimum Android version from 14 to 18 fixes this problem for me.  If 18 doesn't work for you then try 21.

In b10255, API 18 is now the default minimum for new games.

Also, JDK 11 apparently requires Gradle 5 so at this current time, do NOT upgrade to JDK 11.

Ask a Question / Re: refer an actor to the scene co-ords?
« on: February 03, 2019, 06:57:27 am »
There's a block to switch to screen space which then uses the screen coordinates.  You can also try subtracting the actor's x/y.

Ask a Question / Re: Android doesn't compile
« on: February 03, 2019, 06:54:19 am »
I recently found out that this error can be caused by installing Stencyl over an existing install which you should never do.  Always install new Stencyl versions into an empty folder (clean install).

Ask a Question / Re: How should I go about a lighting system?
« on: February 01, 2019, 07:06:04 pm »
I did some testing and it looks like the lights do have to be on the same layer as the darkness for this trick to work.  Putting them on a higher layer won't work, probably because the darkness gets applied before the lights but that ruins the lower layers.

Extensions / Re: Perlin Noise
« on: February 01, 2019, 04:51:07 pm »
Even with 200x200 tiles and testing on Flash, I don't get any noticeable fps drops.  Does your computer have a very old processor?

Extensions / Re: Perlin Noise
« on: February 01, 2019, 04:14:36 pm »
I'm using the "data for tile at" block. I dunno if that impacts it heavily or not, but I get an average of 23 frames per second. I also made the scene 100 by 100 tiles, but I'd think that would only matter for the startup, where it places all the tiles.
And it's 60fps without checking for the tile data?

Would I be able to set this up to spawn a tile that would spawn a structure around it? Like houses in Terraria, or villages in Minecraft: not super common, and also not super close together.
You would need to implement a method to block duplicate tiles within a certain area.

Extensions / Re: Perlin Noise
« on: February 01, 2019, 03:01:43 pm »
The amount and relative position of tiles depends on what numbers you assign to it.  For example, the light green tile has a range of 141-160.

I woudn't expect checking for actor/tile overlap would slow down the game so much.  Are you getting the col and row based on the player's position and using the "ID for tile at" block?

Ask a Question / Re: How should I go about a lighting system?
« on: January 31, 2019, 08:57:00 pm »
The light actors get the screen blend mode, not the layer.  Also the actors can be on the same layer as the dark layer as long as they are above the dark image.

I updated my JDK version to 201 but I still don't get the signing error you two are getting.  Maybe it's a factor but clearly not the only one.  Also Sasorysoft is on Windows 10 so this isn't a Mac-only issue either.

Ask a Question / Re: How should I go about a lighting system?
« on: January 31, 2019, 08:13:24 am »
On Flash, the image API and blend modes are both options you can use.  I think using blend modes (including layer blend modes) will be easier.  For a basic lighting system using blend modes you can use light actors with the screen blend mode along with a dark layer using the multiply blend mode.

Ask a Question / Re: How should I go about a lighting system?
« on: January 30, 2019, 09:04:21 pm »
You would certainly want to use a shader for this assuming you aren't making a Flash game.  You could check out the multiple lights shader I created but it's a fairly simple circle light shader and will not look like the screenshots you posted.,50356.0.html

Ask a Question / Re: Bug with my autotiling- can anyone troubleshoot?
« on: January 30, 2019, 06:59:03 pm »
Stencyl has an autotile feature but it doesn't have a GUI implemented so it can only be done through XML.  If that's something you're interested in you can check this post:,37752.msg242356.html#msg242356

Extensions / Re: Perlin Noise
« on: January 30, 2019, 04:27:44 pm »
Updated the sample game due to image API scaling changes.  It's in the 4.0 format now so it may not work in older versions.  The extension itself still seems to work fine without changes.

Shared Resources / Re: Some Custom Shaders
« on: January 29, 2019, 04:56:50 pm »
I tested the last one on Android and while it functions as expected, the fps is less than 1 on my device (about 5 fps if I lower the array size to 10).  It's a pretty weak device (lg optimus fuel) so maybe the shader would run fine on a high end one.

Update: I tested the crossing bars shader and it runs at 60fps so it really just depends on the complexity of the shader.  I'll assume the other shaders also work on Android unless someone posts otherwise.  I don't have an iOS device so I can't confirm if they work there.

Pages: 1 ... 3 4 5 6 7 ... 430