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

Pages: 1
Ask a Question / Set Origin for Image API Question [SOLVED]
« on: March 09, 2021, 02:50:34 pm »
I have been experimenting with various strategies but am really running into a wall with the behavior of the image API for my situation.

I have an actor, whose angle gets changed, and what needs to happen, is an image of the same size is overlaid, then adjusted to match the angle and position. The actor then slides off in the angle it is pointing creating the illusion of growth.

The issue is that for the actor, I have set the origin at the bottom center, which means it rotates from there. That works exactly as it should. When I overlay the image, and try to set origin for x+width/2 and y+height (to set the same point of rotation), then ask it to match direction, it ends up at some coordinates quite a distance away from where it needs to be. Maybe there is something I am missing in setting the point of origin?
Any help with this would be greatly appreciated as I would rather use image API for this feature than actors.

Ask a Question / Need Help Translating Errors
« on: October 07, 2020, 03:04:30 pm »
Recently, on publishing an app I received some of the following errors:

WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
WARNING - Failed to resolve sourcemap:
WARNING - Suspicious code. The result of the 'not' operator is not being used.
WARNING - If this if/for/while really shouldn't have a body, use {}

Would anyone be able to help me understand the effects these are describing and what I might be able to do within Stencyl to rectify them? They haven't caused any issues so far with use but I would like to avoid doing anything potentially catastrophic in the future. Thank you!  8)

Greetings friends! As the title says I want to stop sounds that occur after a stop all sounds block but are in a do after... Here is a picture (below) to show the block order.
What is happening is that the first sound plays and stops if I keep hitting the actor repeatedly. What happens a little later is a mass of the next two sounds because they were waiting their time...
How do I work something in that will stop the 'do after' if another sound producing thing has been clicked on?
Any help would be appreciated.

"variable requires type-hint or initialization?"

I am trying to use mdotedot's html5 extension to load a youtube video but get this error.

I get the same error when trying to compile the demo from mdotedot's website.

Any ideas?

Ask a Question / Detecting Image Instances in a List
« on: June 28, 2020, 10:13:57 am »
Greetings friends,

If 'list' contains 'instance of (image)'
trigger anything or am I missing something to make this work?

Thank you.

Ask a Question / Emptying and Copying Lists [SOLVED]
« on: June 27, 2020, 11:06:20 am »
I am working with lists and am wondering if my understanding of the following functions is correct:
emptylist>deletes all values from list but keeps number of indexes intact
set to copy of list>copies all values from one list to another if set to an existing list

I have two lists; A and B.
0 - 1
1 - 1
2 - 0
3 - 0
4 - 0
5 - 0

0 - 0
1 - 0
2 - 0
3 - 0
4 - 0
5 - 0

If I empty B and set it to a copy of list A, will it look like this?
0 - 1
1 - 1
2 - 0
3 - 0
4 - 0
5 - 0

or this?

0 - 1
1 - 1

or this?
0 - 1
1 - 1
2 -
3 -
4 -
5 -

I appreciate your input.

Greetings friends.
I am slowly getting the idea of using the image API. I have been able to create multiple instances and am working on using these in place of hundreds of actors. There is a lot to learn as I can tell. I am wondering if anyone could offer an example of creating multiple instances of an image and setting them to a list so that they can be accessed and changed. I understand the idea of how to accomplish this but have been sifting through the forum and google all day looking for the proper type and placement of the blocks to do this.
For my specific use I am creating 9 instances of a single image and I wish to resize all of them to 50%.
I appreciate any help on this.

I am working on a bead board type program. Think of it as a flat piece of wood with divets in a grid for the placing of small objects to visualize quantities.
I have been piecing together bits from this forum and elsewhere and have tried a few things such as using actors, regions... but there are 100 of these 'divets.' Giving each one code will kill a lot of time and seems unnecessary with the tools Stencyl has. What I am trying to do is have each be marked by a region (on a list) that is constantly monitored for detection of a click at which point it will check for an 'active' attribute and either place a bead or remove one (or do nothing if there is nothing there). A user will first activate a 'box' where these objects come from and then click on a 'divet' to make this creation occur. I have also experimented with actors, which is easy enough to set up a few blocks for one and therefore 100, but I still need the actor to check for that 'active' attribute which it cannot do as it belongs to the scene. I am still a bit new at this so maybe I am just missing an easier solution and I wanted to see if there was someone out there who can keep me from wasting too much time trying too many things.

If I only had one bead to place, this is what the code would look like (attached). How do I get something to set the initial region call for any region within the series of 100?

I appreciate any help with this.

Ask a Question / Web Scaling for Mobile? [Solved]
« on: June 04, 2020, 03:50:42 pm »
I have done a bit of searching and experimenting...
When I load my program on the desktop (web), or mobile (web), there doesn't seem to be any difference in the scale even with the scaling settings chosen. Is this normal and would I only see proper scaling if it was exported to iOS or Android? Is there a way to force scaling within the program through dimension detection?
I would just like my big beautiful program to show up tiny and beautiful on an iphone as opposed to being too big.
Thank you for your assistance.

Ask a Question / Question about Regions Touching
« on: June 01, 2020, 10:35:15 pm »

I am working on creating a board to input mathematics problems on... (it's for an odd reason).
The idea is this: clicking on one of the regions creates an actor 'selection'  (to mark it as active) and then stores an attribute called 'selection.' The user can then choose a number from the column which will be created in the 'active' region. If they select the same region it creates the selection actor again and they can switch a number out for a different one. All of this is working as expected except it seems the regions are sensitive to touching each other or even being within a few pixels of each other and the code I have pasted below is causing neighboring regions to execute the same 'kill command.' There also isn't a clear pattern to which sides of the active region are affected. Should I be going about this differently? With Simple physics, the 'kill command' does not work at all. :(

Ask a Question / Stop bouncing when bouncing is set to 0 [Solved]
« on: May 28, 2020, 09:47:45 pm »
I am completely fresh to this and sometimes the most simple things become over-complex after hours of trying to figure them out.
I have set up an abacus with 'beads' on it. The beads are set to be pushed either left or right horizontally when pressed which causes them to collide with ones next to them and take them over to the side as well. This works beautifully, although when they hit the other side (which is a tile) they bounce back. This looks pretty cool but I am trying to find a way to stop them from moving as soon as they reach the other side without having to specify a move distance. Is there a simple way to do this? Bouncing is set to 0 but I guess things bounce anyway?
I have attached a screenshot of the blocks I arranged to get the motion.
Any help with this issue would be appreciated.

Pages: 1