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

Pages: 1 2 3
Ask a Question / Re: Set Origin for Image API Question
« on: March 09, 2021, 03:35:01 pm »
Hey Luyren! Thank you and nice to see you still active here!
I see what you are saying. I think I am trying to make it over complicated by making use of the x and y coordinates.

Can I set the point of origin before attaching an image instance, or does it need to already be attached to calculate that point? I am guessing the origin block is able to calculate and compensate for scale and position within the scene.

At the moment I succeeded in my original goal by setting the point of origin to x=width/2 and y+height of the image instance as you said and things seem to be lining up now.

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.

Game Art / Re: Any software for 8bit music or sounds effects free to use?
« on: October 08, 2020, 03:19:45 pm » for some music and lot's of public domain sound effects.

For music check out YouTube's public domain collection, lots of great stuff in there!

That's fantastic!  :D If you don't mind can you hit 'modify' for this post and add '[SOLVED]?' I am glad you were able to figure it out.

Ask a Question / Re: Need Help Translating Errors
« on: October 08, 2020, 09:21:24 am »
Internet research has been telling me some of these mean that there is code that is not referred to or used that is included. I haven't found anything like that in going through, but sounds harmless, albeit extra and unneeded potentially.

The log viewer does point, I just didn't include those as I figured it wouldn't be as helpful, but maybe it would have.

Ask a Question / Re: Need Help Translating Errors
« on: October 08, 2020, 09:05:49 am »
I noticed them in the log viewer when publishing to HTML5. Running in debug mode didn't turn up anything note worthy.

Ask a Question / Re: Stencylpedia - Image API
« on: October 08, 2020, 08:13:05 am »
Also: folder is in Tools>Workspace>Show Folder for this Game

Ask a Question / Re: Stencylpedia - Image API
« on: October 08, 2020, 08:12:00 am »
Here is a look at a simple arrangement that will make an image visible.

First set the image attribute to the file you put in the extras folder.
Then when you are ready to show the image you will need to set an instance of it to an attribute. You can then attach that instance, fade it, anything else Stencyl allows you to do. To remove it there is also a block for that.

image API rocks

Greetings, could you post the error messages you are getting or upload the logs? Is it working for other platforms?

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)

Thank you Luyren for your advice. I found your video very informative but I ended up experimenting with the 'when sound finishes playing' block which actually cut down my code a lot and helped organize things a bit better.

Always happy to see your stuff though!

Thanks a bunch Luyren! Will do!

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.

Ask a Question / Re: Encountering Compiling Error with HTML5 Video Extension
« on: September 02, 2020, 01:15:16 pm »
That did the trick! I will be using your extension to offer quick access to tutorial videos and your amazing work is going to make my programs even better. Thank you again!

Ask a Question / Re: Encountering Compiling Error with HTML5 Video Extension
« on: September 02, 2020, 11:44:56 am »
Upgraded to the current build but I am still getting the same error. I see that another person had this issue a few months back...

I am hoping there is some simple solution to this as your extension will enhance my programs greatly! :D

Pages: 1 2 3