brent_hamel's Recent Forum Activity

  • There are a few ways you could do this, but they can be a bit convoluted if you're new to this stuff, still totally doable, just non-trivial. My first question would be, how are you using these maze sections within C3, are they sprites? Do you have collision information for these sections? Or tile data for them? Or are they just flat images you've imported?

  • Is your goal to have KeyPressed tell you the last key you pressed? Or is it to monitor specific keys for their state 0=Up, 1=Pressed, etc?

  • I'm not sure what you mean by "installing the sound file"... Can you clarify? Are you trying to generate audio using synthesis the way BFXR and other Chiptune plugins work? Or are you trying to use pre-recorded audio samples the way a sequencer would use them (playing the samples in a loop and pattern that you've created)? Or something else entirely?

  • what event do you recomend me to replace "trigger-once" with?

    You don't need to replace it with anything. You can remove the "Trigger once while true" entirely, as the AJAX.OnLoad action already triggers once.

    Anything that has the green arrow symbol will only fire once when an event has occurred to trigger it

  • The problem is that you have: -Set text to Dictionary.Get("green") //which is using a lowercase "g"//

    But then in your "Add Key" you've got: -Key="Green", Value="Vamos Blocky..." //which is using an uppercase "G"//

    These need to match, so you need to go through and make sure all key names and the strings you pass through Dictionary.Get are identical in every way

  • I'm working on an app that allows users to create, modify, and export little projects. I need to remove the WebView2 titlebar, so I can use my own inside the app window instead. Is there a commandline arguement I can use during export, or a setting I can modify to achieve this? I can do this easily with NW.js but am stuck with WV2

    (I also need a way to export binary files, given that NW.js is being removed eventually... any ideas?)

    Thanks in advance!!

    Tagged:

  • Apologies if this is a stupid question, but I've been unable to find a solution for this for about 6 hours now...

    How can I set the Class and Id properties of form control objects, like buttons, with JS when I first create a new instance of one?

  • I'm also running into an issue regarding eventListeners in conjunction with the Mouse and Button objects... I've successfully got a toggle button working, that animates based on CSS styling... however, I'm unsure how to add properties like :hover, and :active through setCssStyle(), as I also want a button that only remains down while the mouse button is down.

    I've got my "click" event listener on my button, and my mousedown/mouseup on the runtime, however it seems that click overrides the others, and the others only fire when the mouse cursor is not over a button, is there a way around this?

    Ultiamtely, the desired behaviour is that its clicked, animates being pressed, stays in the down position regardless of mouse cursor location, and then releases when the mouse button is released.

    I had thought it would make sense just to have a string that constantly reports the state of the mouse button, but that seems difficult to achieve here...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Fair point!

    https://shorturl.at/rweV2

    So the goal with this test project, was to have the generated noise move from the main window to a popup window, when clicked, then have the popup close when its clicked. Unfortunately, I've only managed to have the popup close when the main window is clicked a second time. I also want to detect when the main window is closed, so it can close the popup at the same time. Eventually this would evolve into saving the coords of the popup so the next time the project is run, it'll open the popup in the same place, etc.

  • For context, I'm trying to open and close secondary windows as undockable UI elements of an app I'm working on, that can be moved outside the main window, moved to secondary monitors, etc, that will be auto closed if the main window is closed.

    (I'm also looking for a way to remove the titlebars from the main window and secondary windows as well, given that this is intended as a desktop app first, and web app second)

  • Hmm interesting... I was unable to get event listeners like "beforeunload" and "click" to work... I'm sure I'm trying to do them wrong, as this is a JS learning journey for me 100%. My entire knowledge base prior to my current project is Construct Classic, Construct 2, Construct 3 (event sheets only for all) and then 6502 Assembly. So there's definitely a curve lol...

    That said, an example cap for non C3 specific event listeners would be much appreciated by me and maybe others.

  • Just a quick question...

    I haven't been able to make work, or find any reference in the scripting section of the manual to eventListener "beforeunload"

    I'm looking to use it as I'm working on something that needs to do some things before actually closing the app, but triggered BY closing it.

    What's the best approach inside C3's JS implementation?

    Thanks in advance!

brent_hamel's avatar

brent_hamel

Member since 31 Dec, 2009

None one is following brent_hamel yet!

Trophy Case

  • 15-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

19/44
How to earn trophies