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

Pages: 1 2 3 4 5 ... 201
Teaching with Stencyl / Re: Teaching - Flash & HTML5
« on: July 06, 2022, 09:43:44 pm »
If you have a flash player (there's still one bundled with Stencyl, for now) flash games can be played in that.

I've been thinking about adding an export option to package html5 games in something like redbean. That would allow it to spin up a server and open the appropriate page in the user's default web browser.

Ask a Question / Re: Encountered errors while building your game....
« on: June 29, 2022, 12:35:56 am »
It looks like telemetry was toggled on or off, but not all of the C++ code was recompiled. Try disabling the hxcpp cache if it's enabled (Tools > HXCPP Compile Cache Settings), and try cleaning the cache for your project (Tools > Game > Clean Project). Then try building again.

Ask a Question / Re: Simulating a key press not quite working
« on: June 21, 2022, 05:34:51 am »
Probably due to the order that things happen.

If the updating event in your jump code happens first, it'll look like this.

Code: [Select]
- Jump Code:
  - when updating
    - if up was pressed (is false)
- On Screen Button Code:
  - when the mouse is pressed on self
    - simulate key press using up (if up was pressed would return true only if it happened after this)

This is the problem with using simulated presses. Sometimes you end up missing them because the press isn't simulated until after you've checked for the key press. You could try simulating the key press in a scene behavior or event, since those get updated before actor behaviors/events.

Ask a Question / Re: Get Pixel?
« on: June 17, 2022, 09:44:58 pm »

Ask a Question / Re: Help Installing Java - Error log attached
« on: June 17, 2022, 09:07:51 pm »
It doesn't understand the four-part Java version ( That's a bug in Stencyl, not something wrong you did.

However, for the version of Stencyl that you're using, Java 18 is too new. You'll need an older version of Java for the Android/HTML5 targets. Try Java 11.

Ask a Question / Re: O Stencyl não está abaixando!
« on: June 15, 2022, 05:53:59 pm »
Ok, sounds like things worked out for you. Good to hear!

Ask a Question / Re: Error while building game - Stencyl version 4.04
« on: June 14, 2022, 06:39:32 pm »
Perhaps you can try running Process Monitor from Sysinternals Suite to try to see if any problems jump out in the logs.

Here's a guide that walks through debugging an issue.

In your case, you would want to open Process Monitor and filter for events involving "haxelib.exe". Then open Stencyl and try testing a game. If you see any errors involving haxelib in the results, feel free to share the Process Monitor logs with me.

Ask a Question / Re: O Stencyl não está abaixando!
« on: June 14, 2022, 06:08:03 pm »
What link are you trying to download Stencyl from? The links on the home page work for me.

If those downloads are failing, could you provide your network request data from your browser for when you attempt to download Stencyl? Here's a guide that shows how.

Ask a Question / Re: Error while building game - Stencyl version 4.04
« on: June 14, 2022, 03:21:03 am »
Edit : The hard drive I'm using has a 64 bit version of windows 7 while it should be 32 bit. Would this have something to do with it ?

It's not possible to install 64-bit Windows onto a 32-bit machine, so I'm not sure what you mean by this.

Since you have a 64-bit Windows OS, you could try running the 64-bit version of Stencyl, though I don't particularly expect that to change anything.

Looks like the file is being served over http instead of https, so some browsers may block the download (since the Stencyl forums are served over https). You can copy the download link and paste it into a new tab, or use a download manager to get the file.

Ask a Question / Re: Stencyl doesn't open on Mac
« on: May 26, 2022, 02:13:42 am »
If it stops opening when it previously worked, and downloading a fresh copy makes it work again, then it sounds like at some point the Stencyl install folder is being changed in some way. It's not likely to be something that Stencyl itself is doing, so it's a little difficult for me to give advice about handling that.

If you have trouble figuring out what it is that's modifying the Stencyl install folder, an easy way to work around the problem would be to just save the Stencyl download and re-extract it from the dmg or zip file every time it breaks instead of redownloading it.

Ask a Question / Re: How do I create an If Statement with Lists?
« on: May 26, 2022, 02:08:34 am »
That looks correct, but it depends on you setting up the list with the correct data in the first place as well.

Try looping over the list and printing each item to make sure the list contents are what you expect.

Ask a Question / Re: How do I create an If Statement with Lists?
« on: May 21, 2022, 12:25:49 am »
You can use the [get item # [_index_] from [_list_]] block to retrieve the value of an item in the list, and then use the <[_anything_] = [_anything_]> block to check if that's equal to the word complete.

if <[ get item # [ 0 ] from [ my list ] ] = [ complete ]>, for example.

Ask a Question / Re: How do I create an If Statement with Lists?
« on: May 19, 2022, 12:44:13 am »
Not sure what you mean by an item on a list being complete. Might help to expand on that.

Ask a Question / Re: Permanent within the Scene
« on: May 17, 2022, 02:00:54 am »
You need to use game attributes for this.

If you don't want to set up individual game attributes for something like this, you might want to consider automating it by using a Map game attribute, and coming up with some way to uniquely identify each actor that you want to track. Then you can set the unique key to true/false depending on whether the treasure has been collected.

For example, you could use scene name + actor x position + actor y position as they keys for your map. Then, as long as you don't rename the scene or move your actor, the key won't change, and when you load your game next time, the treasure will still be removed from the scene. And you can place that code in a single behavior that will work for all actors its attached to.

That's just an example. Perhaps there's a better solution for you, but it depends on how your game works.

Pages: 1 2 3 4 5 ... 201