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

Pages: 1 2
1
Ask a Question / Re: Simulating a key press not quite working
« on: June 21, 2022, 04:22:23 pm »
@Justin. I just thought of a dirty work around which works great!

I set game boolean to true "UpKeyPressed"

My jump behavior looks for that and immediately turns it to false before executing the jump code.

Works really nicely.

2
Ask a Question / Re: Simulating a key press not quite working
« on: June 21, 2022, 03:35:32 pm »
Interesting. Any way to work around this?

Also I just tested it and changed the trigger for jump. The on screen click works but it makes me jump like triple...

3
Hi all,

I have created on screen buttons for mobile only. My Left, Right and Enter keys work. However my Up doesn't!

For Left and Right the movement is "If <X key is down>", for the Up key it is "If <Up was pressed>" - see attached.

Any ideas on why Up doesn't work? For reference the actual Up key works for jumping in the same test environment so it isn't any of my other arguments causing issues.

Cheers in advance

4
Ask a Question / Re: I need help with attaching a JDK
« on: June 19, 2022, 07:56:01 pm »
Happy to see it helped! These things can be so annoying.

5
Ask a Question / Re: I need help with attaching a JDK
« on: June 17, 2022, 11:14:32 pm »
Hi,

Please see my post. Just had this exact same error!

https://community.stencyl.com/index.php/topic,61954.msg318149.html#msg318149

6
Ask a Question / Re: Help Installing Java - Error log attached
« on: June 17, 2022, 10:30:56 pm »
@Justin. Worked perfect cheers. I wanted to send it to a friend but you can't run locally because of CORS. So I'll setup a firebase somewhere :)

7
Ask a Question / Re: Fade In issue
« on: June 17, 2022, 10:09:49 pm »
Quick observation. If I do fade out on mouse down and then fade in on mouse release. It works?

8
Ask a Question / Re: Help Installing Java - Error log attached
« on: June 17, 2022, 09:30:06 pm »
Amazing. Thank you Justin. I'll try that now.

9
Ask a Question / Re: Fade In issue
« on: June 17, 2022, 05:45:00 pm »
Hi I had a quick play around. It seems to be how the blocks interact with each other.

For example I can use similar code and at 51% set opacity of the actor to 100%. But fade in doesn't trigger properly.

A work around could be at 51% you switch a boolean  to true and while it's true and while opacity of the actor is less than 100% you change opacity every x seconds (.5 or so) to currentOpacity + 1.

Otherwise maybe somebody knows why the block won't trigger properly.

10
Ask a Question / [SOLVED] Help Installing Java - Error log attached
« on: June 17, 2022, 05:10:17 pm »
Hi guys,

I tried to install Java. Downloaded the latest from a link in another Stencyl thread. Installed it and then Pointed Stencyl to it through the Publish > Web option. It gave me this error.

java.lang.IllegalArgumentException: invalid version "18.0.1.1": invalid format
   at misc.Version.assertSame(Version.java:184)
   at misc.Version.<init>(Version.java:156)
   at stencyl.sw.util.platform.JDK.getJDKVersion(JDK.java:293)
   at stencyl.sw.prefs.ToolsPage.lambda$createToolsPage$0(ToolsPage.java:64)
   at com.polydes.common.data.types.builtin.FileType$FileEditor$1.update(FileType.java:217)
   at com.polydes.common.comp.utils.DocumentAdapter.innerUpdate(DocumentAdapter.java:30)
   at com.polydes.common.comp.utils.DocumentAdapter.insertUpdate(DocumentAdapter.java:34)
   at java.desktop/javax.swing.text.AbstractDocument.fireInsertUpdate(Unknown Source)
   at java.desktop/javax.swing.text.AbstractDocument.handleInsertString(Unknown Source)
   at java.desktop/javax.swing.text.AbstractDocument.insertString(Unknown Source)
   at java.desktop/javax.swing.text.PlainDocument.insertString(Unknown Source)
   at java.desktop/javax.swing.text.AbstractDocument.replace(Unknown Source)
   at java.desktop/javax.swing.text.JTextComponent.setText(Unknown Source)
   at com.polydes.common.data.types.builtin.FileType$FileEditor.updateFileInfo(FileType.java:241)
   at com.polydes.common.data.types.builtin.FileType$FileEditor.lambda$new$0(FileType.java:194)
   at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
   at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
   at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
   at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
   at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
   at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
   at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
   at java.desktop/java.awt.Component.processEvent(Unknown Source)
   at java.desktop/java.awt.Container.processEvent(Unknown Source)
   at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
   at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
   at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
   at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
   at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
   at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
   at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
   at java.base/java.security.AccessController.doPrivileged(Native Method)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
   at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
   at java.base/java.security.AccessController.doPrivileged(Native Method)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
   at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
   at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
   at java.base/java.security.AccessController.doPrivileged(Native Method)
   at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
   at java.desktop/java.awt.Dialog.show(Unknown Source)
   at java.desktop/java.awt.Component.show(Unknown Source)
   at java.desktop/java.awt.Component.setVisible(Unknown Source)
   at java.desktop/java.awt.Window.setVisible(Unknown Source)
   at java.desktop/java.awt.Dialog.setVisible(Unknown Source)
   at stencyl.sw.prefs.PreferencesDialog.displayToolsPage(PreferencesDialog.java:314)
   at stencyl.sw.util.platform.android.AndroidToolchain.openPathsWindow(AndroidToolchain.java:247)
   at stencyl.sw.util.platform.JDK.checkVersionAndPromptForUpgrade(JDK.java:332)
   at stencyl.sw.app.tasks.buildgame.HTML5GameBuilder.buildRequirementsMet(HTML5GameBuilder.java:34)
   at stencyl.sw.app.tasks.buildgame.GameBuilder.run(GameBuilder.java:126)
   at stencyl.sw.app.tasks.buildgame.GameBuilder.access$000(GameBuilder.java:53)
   at stencyl.sw.app.tasks.buildgame.GameBuilder$1.callWhenDone(GameBuilder.java:117)
   at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:90)
   at stencyl.sw.app.tasks.SaveGameTask.done(SaveGameTask.java:58)
   at java.desktop/javax.swing.SwingWorker$5.run(Unknown Source)
   at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
   at java.desktop/sun.swing.AccumulativeRunnable.run(Unknown Source)
   at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
   at java.desktop/javax.swing.Timer.fireActionPerformed(Unknown Source)
   at java.desktop/javax.swing.Timer$DoPostEvent.run(Unknown Source)
   at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
   at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
   at java.base/java.security.AccessController.doPrivileged(Native Method)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)


Any ideas what I've done wrong?

11
Ask a Question / Re: Tiles not creating. Also Tiles not removing?
« on: June 14, 2022, 05:16:37 pm »
Just FYI In case someone reads this. I didn't solve the issue. But as a workaround I created an actor that looks like my tiles. When a Boolean is set to true it kills itself :)

12
Ask a Question / Re: Tiles not creating. Also Tiles not removing?
« on: June 13, 2022, 12:33:39 am »
Hey merrack.

So either setting them doesn't work.

OR putting them in scene editor then deleting programmatically.

I checked with debug boxes on and nothing!?

13
Ask a Question / Re: Just wondering about stencyl limitations
« on: June 12, 2022, 04:33:18 pm »
@merrak. Legends of Idleon is insane when you look at what the creator has done using stencyl :)

14
@merrak I wanted to show I had gone with your idea in the end.

I created an actor with a cut out hole, which follows my actor. I also had this actor create black boxes on all 4 sides to ensure no gaps. I didn't simply make the actor bigger because it would crash Stencyl :O

Thanks for the help. I'll attach my behaviors in case others see this.

15
Hi,

I followed the api and other topics to try and create and then remove tiles.

First I tried to just remove them in game using logic after creating the tiles in the scene editor.

Then I read you have to create them in "When created" first to then destroy. Still won't work, Won't even create?

See attached ScreenShots. I am a bit confused as to what I'm missing.


Pages: 1 2