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

Pages: 1 2 3 4 ... 6
Ask a Question / Re: For each actor inside region - no actors found
« on: October 21, 2015, 05:23:06 pm »
Goddammit I have the exact same problem. My regions do stuff only if I create them in the scene editor. If I create them on code (exactly the same of yours) they do nothing. Why?

Ask a Question / Re: Would like to pan sounds - little code guidance?
« on: October 20, 2015, 12:09:50 pm »
There is a mystique of Stencyl giving you a panning block in an older version. I have downloaded 3.0 and 2.something, and I didn't find it there. I thought that could help me.

Ask a Question / Re: Would like to pan sounds - little code guidance?
« on: October 20, 2015, 12:07:29 pm »
I am targeting all platforms actually. Somebody has made panning work on Flash,

I have contacted him about it.

Honestly I need something that works on flash, mobile, and desktop. I wouldn't be happy with a solution only for mobile/desktop. I'm gonna publish first as Flash. 

I have tried to do code, with no previous experience. I succeded in looping a sound in update, since it wouldn't on initialize.
I have tried manipulating the panning property like this; it compiles but it doesn't pan anything:

Code: [Select]

public var theSound:Sound;

public inline function update(elapsedTime:Float)


theSound.panning = -100/100;


the panning property is a float, but I don't understand if a float should be expressed with point values (0.1) or percentages like there (I have used the "view code" function in the blocks to try to figure that out). It doesn't work in either case (on Flash). Is that the way I would access the panning property?

Ask a Question / Would like to pan sounds - little code guidance?
« on: October 20, 2015, 10:30:15 am »
I have tried looking at the API but I have very little programming experience and can't wrap my head around it.

Can someone be so kind as to post a code snippet that could help me understand how I would go for panning a sound in Stencyl? I've seen the pan functions and variables by I'm confused by the different APIs...Stencyl, Open FL, Haxe APIs...can't wrap my head around it and can't create any code yet.

Ask a Question / Re: Pixelated Fonts
« on: October 15, 2015, 09:25:16 am »
coleislazy, I get the following errors when trying to use your block. Know how to fix this? It doesn't seem to see the variables.

GLOBAL Draw Text: Type not found : Number
   from scripts.Design_4_4_GLOBALDrawText
   line: 81
   columns: 2-35
GLOBAL Draw Text: Type not found : Number
   from scripts.Design_4_4_GLOBALDrawText
   line: 82
   columns: 2-27
GLOBAL Draw Text: Int should be String
   from scripts.Design_4_4_GLOBALDrawText
   line: 85
   columns: 7-60

Extensions / Re: Scaling Utilites (Optimize Pixel Art and More!)
« on: October 15, 2015, 07:49:14 am »
You are actually saving my life with this one. Finally I get the proper width/height of actors I have scaled in the editor.

By scaling actors in the editor, Stencyl would simply not update their width at runtime. I don't know if I missed something as this is just very weird.  This would create issues such as not rotating actors correctly if their origin point isn't at the center.

This extension seems like it's fixing my problems. Thank you!

Bug Archives / Re: Android sound bug
« on: October 09, 2015, 10:01:20 am »
Oh sorry, I misread. 0.4s, not ms.

I could find workarounds for Unity though, which I haven't tested but people say they work. But not Stencyl.

Maybe I'm overestimating the importance of the problem. I'm looking at youtube videos of games being played on Samsung Galaxy S4. I think the audio lag is noticeable, but it doesn't completely ruin the game as I thought.

Am I imagining the audio lag in this video, or does it perfectly convey the issue? Go at 18:40 for example.

Indeed now that I remember, when I did a quick Stencyl prototype on a cheap Android device a few months ago, I had a feeling something was a bit off. The audio was probably suffering delay. It's a crappy Alcatel phone.

Bug Archives / Re: Android sound bug
« on: October 09, 2015, 09:53:53 am »
Yes, but there's no workaround for Stencyl, right?

As for Unity, people are talking about 0.4 ms lags, not half second!! Huge difference.

I see solutions for Unity, but not Stencyl.

Bug Archives / Re: Android sound bug
« on: October 09, 2015, 09:27:14 am »
You're telling me that all games have sound delay on Galaxy S4? All games made in Unity or any other engine? That any game I play on there, plays the sounds half a second later than they should? I don't have an S4 around, but I find it hard to believe.

Bug Archives / Android sound bug
« on: October 09, 2015, 08:17:43 am »

Here I read:

On the Android target, playing sounds may be delayed by a quarter to half second on a small subset of devices, including the Galaxy S4. This is due to a bug in the underlying technology. We hope that this will be fixed in the future.

This is a big bummer, since the Samsung Galaxy S4 is the second most adopted Android device after the S3.

Does this mean EVERY sound has 1/4 or 1/2 delay there? Including sound effects? If it was just music I could close an eye, but if that's the sound effects as well, I can't!

If this is true I simply can't trust Stencyl as a mobile development tool, I'll have to switch to something else. It's just unprofessional to publish a game like that.

If this is fixed, I will trust Stencyl again. Meanwhile, I must resort to other tools, I'm not going to publish an Android game with half second delayed sounds on the second most adopted device.

Ask a Question / Can't send actor to layer
« on: October 07, 2015, 11:14:17 am »
There are so many things in Stencyl that I just can't make work, I wonder if they're bugs.

1) I can't send an actor to a layer, it just doesn't do it. The code is in attachment. It creates the actor, but just doesn't send it to the layer, whether via ID or layer name.

2) The "Anchor to screen" block and behavior don't work if I attach them to an actor. If I tell the actor to attach itself to the screen, it just doesn't do it. It works only from an event or behavior in the scene. Is this the way it's supposed to be?

3) The blendmode preview in the editor just doesn't work to me. If the layer isn't in normal blending mode, it simply disappears. Bug?

Ask a Question / Re: Safari Flash mouse problem
« on: September 08, 2015, 11:53:17 am »
Maybe I don't understand your response @letmethink, but I don't think you understood the problem.

I am using a Follow the Mouse with easing behavior - I don't want the sprite to just stick to the mousex and y.

Maybe the problem is in the easing code.

Anyhow I found a solution by creating a region which covers the whole game area except a 20-pixels border at runtime, sticking it to camera, and having the Follow Mouse behavior deactivate when the mouse is outside of the region (so this occurs BEFORE the mouse cursor leaves the stage). So far it works. Again, the problem would occur only on Safari, and would make the game based on the precision of mouse control unplayable there.

Ask a Question / Safari Flash mouse problem
« on: September 07, 2015, 07:07:13 pm »
If I attach a Follow the Mouse behavior to an actor, the actor will jerk to xy 0,0 when the mouse leaves the .swf stage. This happens only on Safari, not Chrome or Firefox. I know it's a Flash thing, not Stencyl-specific.

This is crucial for my Flash game, which is a bit like Geometry Wars, with the player sprite following the mouse. How to fix this?

Ask a Question / Re: Water effect?
« on: February 10, 2015, 12:18:33 pm »
never heard it called "wake". Some example somewhere?

Ask a Question / Water effect?
« on: February 10, 2015, 12:02:17 pm »
Is it possible to create a 2d water effect where the water moves appropriately when the character enters it in Stencyl? How? I have no idea how to start. Hints?

Pages: 1 2 3 4 ... 6