Headbang Games's Recent Forum Activity

  • As far as I know you can't set/read a string value with an exported string, you need to reference the string by name directly in your events. It might be possible with scripting, though I haven't tried that.

    I would recommend you use a dictionary to store all your strings and values, then you can easily set/read them with a string. By splitting the text using tokentat based on spaces.

    tokenat(strVar,0," ") will get you the string name

    tokenat(strVar,1," ") will get you the valuation

    tokenat(strVar,2," ") will get you the result

    Then you can use dictionary.get(tokenat(strVar,0," ")) = tokenat(strVar,2," ")

    Since you can't also inject a valuation string and need to directly write it in your event, you would probably need to do a separated check for each type of evaluation.

    if tokenat(strVar,1," ") equals ("==") >

    Dictionary.Get(tokenat(strVar,0," ")) = int(tokenat(strVar,2," ")) ? "correct" : "incorrect"

    if tokenat(strVar,1," ") equals (">=") >

    Dictionary.Get(tokenat(strVar,0," ")) >= int(tokenat(strVar,2," ")) ? "correct" : "incorrect"

  • Works just fine for me.

    You probably did something wrong...

    Try this (rename zip to c3p after download)

    https://headbangames.com/html_background.zip

  • You basically can't.

    Any DOM object, like html, text input, buttons, lists, etc is not rendered inside the canvas but on top of it.

    That being said, if the html element is just a background element, you might be able to make your layout background transparent (all layers need to be transparent) then manually change the Z index to bring the canvas above the html object (html z-index 0 canvas z-index 1, and you'll need to add a position to the canvas (relative/absolute).

    Alternatively you can set the html z-index to -1, but then you will need to set the body background to transparent.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can try adding the "On changed" condition for the textbox.

    If you don't need to continue showing the text after validation, just clear the textbox.

  • You can scroll the offset of a tiled background image, just use that.

  • You are welcome to contact me (email or socials) so we can discuss the details.

    https://headbangames.com/devblog/contact

  • You probably have the "set angle" property enabled on whatever behavior you're using for movement.

  • Set the animation speed to a negative number and the repeat-to frame to the last frame instead of the first frame.

  • You are welcome to contact me (email or socials).

    https://headbangames.com/devblog/contact

  • You are welcome to contact me (email or socials).

    headbangames.com/devblog/contact

  • I meant that you import it into the "files" section of your project, then it's not saved into the sprite-sheet.

    You can set the opacity with css

    opacity: 0;

  • You could probably use the background-image css property, though you would need to import the image as a file (not a sprite) and I'm not sure if you would have access to it when previewing (but certainly after export).

    Alternatively you can change the opacity of the button to 0 and put a normal sprite below it.

Headbang Games's avatar

Headbang Games

Member since 5 Dec, 2012

Twitter
Headbang Games has 1 followers

Connect with Headbang Games

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies