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

Pages: 1
Ask a Question / toggle vsync
« on: December 18, 2019, 10:55:57 pm »
Hi all :)

Is Stencyl locked to 60fps?

Is it possible to turn vsync  on or off using a code block, for the "flash (player) platform"?
Or is it only possible to do this for the "Windows" platform?


Ask a Question / Re: Using "Last Created Actor" from Actor instances
« on: December 18, 2016, 05:21:26 am »
Thanks kilerpizza, I'll try that out.
SaqiQ, here is the event for the left sensor. The right one is the same.

Ask a Question / Using "Last Created Actor" from Actor instances
« on: December 18, 2016, 05:01:58 am »
I have an enemy actor that I attach ground sensing actors to, at its feet. In the attached code, I delete and create these ground sensors depending on the direction the enemy is moving in. In the "create_left_ground_sensor" and "create_right_ground_sensor" events, I assign the "Last created actor" to the "left_ground_sensor" and "right_ground_sensor" attributes. If I have 1 enemy instance in the scene, it works fine, but when I add more enemy instances, it seems that they are deleting one another's ground sensors.

Is "Last created actor" shared between instances of the same Actor type, and if so, how do I get around it?
What other ideas do you have for achieving this?

Thanks so much  :)!

Ask a Question / What debugging workflow do you use?
« on: November 03, 2016, 11:41:29 am »
Hi everyone!

I'm loving Stencyl and would like to find out how you debug your games? I have searched the forums and read the Stencylpedia article on debugging, but I still feel like I'm missing something. I have seen in certain conditions, if there is an error, Stencyl will highlight the block that it occurs at, but when there is a runtime error and the the game crashes, I find it difficult to pinpoint the problem area. Do you use "Run App in Debug Mode", which is found in the menus?

I know there is an error log that gets generated - how do you use this? I know the log suggests to post it on the forums, but I'd much rather try and solve the error myself if I can, and learn more about Stencyl by doing so :).

Please let me know your debug workflow :)


Ask a Question / Re: Scaled collision shape info
« on: October 16, 2016, 12:35:43 pm »
I'll have a look at this, maybe it will, thanks :)!

Ask a Question / Scaled collision shape info
« on: October 16, 2016, 02:33:13 am »
How would I go about finding the x, y, width and height of an Actor's collision shape at runtime?
I have been trying a code block with ".getBody().getPosition().x" but it doesn't seem to change after I have
used a "grow" block.


Ask a Question / Re: Scaling an Actor in Scene Designer
« on: September 17, 2016, 04:15:07 am »
Can you post it here so we can see it? Also, turn on debug drawing so we can check collision shapes. Are you scaling it in the scene designer or at run time?

I attached 2 screenshots in my first post now. I'm scaling it in scene designer.

If the actor is appearing in a different place in-game than it does in the Scene Designer, this is a bug. Please file an issue on the tracker with details. Thanks.

Ok, will do, thanks!

Ask a Question / Re: Scaling an Actor in Scene Designer
« on: September 16, 2016, 11:33:38 am »
This is with gravity off for the actor, and not overlapping anything.

Ask a Question / Re: Scaling an Actor in Scene Designer
« on: September 16, 2016, 11:32:36 am »
If I place a 64 x 64 actor with scale x:1, y:1 in scene designer, it stays at the same position when I run the game.
If I scale the actor by 3 in x, the actor moves 64 pixels to the right in the game. After testing, I see this only happens
if I set the actor's origin point to "Top Left". If I leave it on "Center", it doesn't reposition.

Maybe this is just something Box2D does?

Ask a Question / Scaling an Actor in Scene Designer
« on: September 16, 2016, 07:24:37 am »
Hi everyone

I'm new to Stencyl and really enjoying learning to use it and seeing what it can do!

When I create an actor in scene designer and scale it, its position changes when I run the game.
Why is it doing that?

Thanks :D

Pages: 1