lunaticedit's Recent Forum Activity

  • No, without tracking the second variable, the condition gets evaluated every frame. I don't want to do no-op DOM updates every single frame for as that'd be incredibly wasteful. I'm just going to keep it the way I have it and consider it a shortcoming of construct I'll have to work around.

    This is as clean as it's going to get I guess...

  • I could, but this is just the mouse part. I'm also going to support joysticks and I want to be able to set the hover state programmatically so for console the user can press the dpad to change the button thats being hovered over.

  • I forgot to remove the variable before taking the screenshot, sorry! I've got it working with the following setup, but I'd prefer to not have to have two chained conditions like this, I'd prefer to be able to say 'if the values are different'.

    Does this make sense?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So this is my setup:

    If I were doing this in javascript, i'd have a condition after those two like so:

    if (this.Hovered != this.LastHovered) {
     // Do Stuff
    }
    

    How would I replicate this comparison as a condition?

  • I'm new to Construct 3, but are you suggesting that construct doesn't support comparing one value against another?

  • I'm trying to compare two boolean values, but for some reason it says I need to create instance variables first. I have, and if I use a single instance variable condition the list shows the items, but when I try to compare two, it says I have to create instance items first. Any ideas?

lunaticedit's avatar

lunaticedit

Member since 9 Sep, 2014

None one is following lunaticedit yet!

Trophy Case

  • 10-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies