Replies: 6 comments 1 reply
-
Hi, if possible can you please give some more information about the individual issues?
Can you please elaborate what "does not work" means and where it happens?
Can you please share a screenshot of how the sound is triggered in the logic nodes? It sounds as if it is restarted as long as you hover over the buttons. I also noticed that there is an audio related exeption when starting the level: I'm not sure yet what causes it. If this exeption also happens on Krom it would be great if you could share it.
Which nodes are you using for that? The |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
So the problem with the sound is indeed that the OnCanvasElement node output is activated on each frame that the mouse is over the element. The problem with the way Zui works (it's an immediate mode UI) is that it is not straightforward to find out if an element is hovered for the first time in a row, at least I don't know a good solution. If the element ID input would be static (no input socket, just a text field), we could implement this very easily in the node, but when it can potentially change every frame it gets tricky. So I guess the best would be to check this manually, something like this could work (untested!): It's probably best to use a node group here to be able to reuse the nodes for different buttons. Can you also please share a screenshot of how you are using the read/write storage nodes? They work for me on html5. What does not work with them? Is it the read or the write? The NaN (not a number) when loading the values for the first time when no storage file exists (that's probably because you haven't set a default value and |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks :) You're right, apparently the Here is the new working solution: I will see if I can think of a way to add started/down/released states to the On Canvas Element node when hover is selected, but as I said it might not be that straightforward because the element input can theoretically change at any time. As for the storage nodes, I still can't reproduce any issues with the storage system itself (using Firefox). Maybe you have already stored invalid data (e.g. NaN) in the browser's local storage which is read if you start the game? You can inspect and clear the local storage for a given URL but how you do that depends on the used browser. Otherwise it might help to once overwrite it with a value at init to fix your setup. After that the above should work and Currently there is a bit of a weird behaviour for the read storage node. If there is no saved file, |
Beta Was this translation helpful? Give feedback.
-
Thank you for contributing to Armory!
Description
I have programmed a car game on PC and web but I was surprised that it works very well on PC but not very well on the web.
To Reproduce
Steps to reproduce the behavior.
Expected behavior
disappear material does not work
The sound works strangely in the main menu ( I used Node play sound )
save and load system does not work
System
Blender: 2.93.5
Armory: 2022.3.0
OS:
Graphics card: 1050
you can check my game here
web :
https://yinv9db4fjvimpu2zwvyfw.on.drv.tw/www.car%20scape/
pc :
https://drive.google.com/file/d/1w0qjXLzqFwRfJHoyaFkVGstuxuXdkmk9/view
Beta Was this translation helpful? Give feedback.
All reactions