megatronx's Recent Forum Activity

  • Take that you Americans ;)

    just kidd ;)

  • I already did that several hours ago - downloaded 110.2 again and installed it.

  • Already did that, but no change.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Local variable doesn't seam to update at all when it's in non-static mode.

    box.com/s/ac712pzrptap98amy5z7

  • Well, this thread started as a question weather I'm doing something wrong or not. But I will post in bug section now.

  • Hey,

    here's the reproduction of my code

    box.com/s/ac712pzrptap98amy5z7

    Not working neither when local variable is on the bottom nor on top of the group.

    The original code was made in 108 and was working as intended.

  • it's 110.2 .

    I've tired both options

    ( original build in 108 )

    • On button x pressed: set LocalVar to 1
    • LocalVar = 1: do stuff
    • Local number (non-static) LocalVar = 0

    and

    • Local number (non-static) LocalVar = 0
    • On button x pressed: set LocalVar to 1
    • LocalVar = 1: do stuff

    and none of them work, which is very bizarre because i did not change anything but suddenly just stopped working with an update!

    ;(

    EDIT@ Ok, so I'm pretty sure non-static Local Variables are broken. Here is the reason why:

    • On button x pressed: set LocalVar to 1
    • LocalVar = 1: do stuff

                   Set LocalVar to 0

    • Local number (static) LocalVar = 0

    And this way it works but as we know there shouldn't be a need for that if i only want to trigger local var once per loop by keeping it non-static.

  • Anything that would boost the performance is welcome.

  • Hey,

    I guess i could but there is already around 550 event, so not sure if it's good idea?

    That local variable is responsible for turning on and off refreshing of the inventory. When i set that local variable to 1 in the event's sheet it just loops endlessly. That's why I suspect that local variables work now as statics even if static is ticked off.

  • Hi,

    So I've just downloaded latest beta version and seams like local non-static variable is not working in my events code anymore. Where in r110 as we know it was broken because it treat it as a global Var, now it seams that it is not updating it at all. So I want to check with you guys If it means that it was broken and now it is fixed, or in fact it was working well and now it is not before I submit the bug?

    So simplified version of my events looks like this:

    • On button x pressed: set LocalVar to 1
    • LocalVar = 1: do stuff
    • Local number (non-static) LocalVar = 0

    Thanks

  • Your a star rex :) Checkin :)

    EDIT@ Hmm, My inventory is still broken. But maybe it's because of that loopindex bug that apparently is going to be fixed in r111. Although I'm mostly using loop "for each row" from your plugin. Not sure what's going on :/

    Eh :/

  • yeah, send u pm.

megatronx's avatar

megatronx

Member since 25 Sep, 2008

Twitter
megatronx has 1 followers

Connect with megatronx

Trophy Case

  • 16-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • 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

23/44
How to earn trophies