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

Pages: 1
1
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

2
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?

3
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.


4
Hi all,
 I'm making a small platforming game and so far this forum has been immensely helpful for solving issues or questions. I have a really fun idea (Which of course isn't super original) for my a set of levels - a torch in darkness.

I tried this tutorial after a lot of searching - https://www.youtube.com/watch?v=ii9aprIwd3w and it worked mostly! I made my player and torchlight actor the "player" as per the tutorial and a big yellow box actor for the illumination (which in the tutorial were small circles). Except the torch doesn't illuminate. So my player and the torch draw over the black box which is darkness, but the torch won't illuminate the background level.

Does anyone have any better tutorials or suggestions for something that worked for them? I can post more info if needed.

5
Hi everyone, first time posting here. I usually google for answers which often come back with posts here. Problem is I'm not sure exactly what to google here.

My issue is that I have a hover behaviour which checks the mouse is between say 100X and 150X and then 100Y and 150Y. In my first instance of this it worked fine with two variations of this, the hover would work and then I added a clicking behaviour. In my second instance I'm trying to check four areas, I simply can't get it to work properly. Not sure if it's something obvious or I'm missing something.

Thanks in advance for any help! Attached is the code I'm having issues with, I can upload more if you like.

Pages: 1