Telyko's Forum Posts

  • Hello everyone!

    It has been a while since I posted. I need your help knowing if what I'm trying to achieve can be done.

    I have created a simple Input TextBox. and a simple Text. Is there a way for that Text to display the content of the Input TextBox if it is a Variable?

    Let's say I do:

    • On Every Tick: Set GlobalVariable called "DebugText" to TextBox.Text
    • On Every Tick: Set Text.Text to DebugText

    I can't figure out how to make this work. If I write Mouse.X in the Input TextBox I'd like the Text object to render the mouse.x coordinates, not "Mouse.X"

    I know I could use the Debugger option of Construct 2 but I'd like something lighter and .. on-demand if you see what I mean.

    In advance, thank you for your help !

  • You are both absolutely right, and I totally forgot about containers. Thank you very much to both of you!

  • Problem Description

    I am not entirely sure this is a bug, perhaps I'm doing something wrong but that surprises me and I've tried lots of things.

    I have a character object with a variable. I create to instances of this character and assign a different variable to each 1 and 2. Then I attach another object a shield to these characters.

    And I create a box. I tell construct:

    Condition: Character with variable = 1 + When shield touches box + Pick instance where Character has variable n°1 = Simulate character Jump

    Condition: Character with variable = 2 + When shield touches box +Pick instance where Character has variable n°2= Simulate character Jump

    The issue is that both characters jump at the same time despite the fact that there is a Pick instance where... Am I doing something wrong?

    Attached a Capx : http://s000.tinyupload.com/index.php?file_id=93936619249368586189

  • ROGUS is inside Groupees' Build a Greenlight Bundle!

  • You need to check out interoperability between Ejecta and iOs / Android I guess, in terms of what the app can have access to on a phone. I'm pretty sure the things you mentioned are quite locked up on iOs tho.

  • Ashley

    I'm picking this up on the go, and I'm a bit concerned: "small memory leak for every 'Text' object in the project ".

    Is this only on Preview or for every project since r149 even once exported??

  • Thank you for your support! We still need votes!

    Greenlight: http://steamcommunity.com/sharedfiles/filedetails/?id=341770196

    Also, here's a new gameplay video:

  • Hi there. In order to do that, just add the Node-Webkit object to your project if it isn't already done, then create an event that says:

    On Button clicked: Run file at path %expression%

    You will have to replace %expression% by a working file path.

    You can find exemples of file paths variables by entering "NodeWebkit." in the path. The dot "." is important because it will auto-suggest different variables you can use, just remove the quotes.

  • Oh my bad, I read your post a bit too fast. I'll delete it!

  • I see more and more people having issues with Node-Webkit.

    Roger Wang is its dev and he is quite aware of the issues, he has received lots of feedback and is actively working on it almost everyday as you can see in the latest live builds page here https://github.com/rogerwang/node-webkit / http://dl.node-webkit.org/live-build/

    I say he's actively working on it because I have been in contact with him very recently regarding performances, along with some other C2 users, and I also noticed a few days ago the appearance of a file that wasn't in older versions of NW: d3dcompiler_46.dll

    I'm no expert with DLLS but I know this file is related to DirectX, graphics acceleration and it's one of the latest version of it since the current file most used is d3dcompiler_43.dll (If you check your System32 folder you're likely to find lots of (older) versions of it).

    Ashley mentionned once that it cannot just be bundled like that for legal reasons and must be distributed throught the official dxwebsetup (directX) installer, but this means Roger is working on the optimization of how graphics are handled through Node-Webkit.

    So let's have faith and be a little patient.

  • Indeed, I'd set a variable called ATTACKButtonState=0 or 1

    Then If ATTACKButtonState = 0 set Button Invisible (trigger once)

  • Hi, I would suggest using a value for each of the following: Hours (number) - Minutes (number)- Seconds (number) - Week days (number).

    You can do, On Layout Start:

    Set WeekDay = 1

    Set Hours = 0

    Set Minutes = 0

    Set Seconds = 0

    On every 0.25 seconds:

    If Weekday = 1 Set Daytext to: "Monday" &"-" &Hours &":" &Minutes &":" &Seconds

    If Weekday = 2 Set Daytext to: "Tuesday" &"-" &Hours &":" &Minutes &":" &Seconds

    If Weekday = 3 Set Daytext to: "Wednesday" &"-" &Hours &":" &Minutes &":" &Seconds

    Etc...

    On every 1 second:

    Add +1 to Seconds

    If Seconds greater or equal to 60 then add 1 to minutes AND set Seconds to 0

    If MInutes greater or equal to 60 then add 1 to hours and set minutes to 0

    If hours greater or equal to 24 then add 1 to weekdays and set hours to 0

    If weekdays greater or equal to 7 set 0 to every value

    I just wrote this on-the-fly and might be missing some things but you have the general idea. There is perhaps an easier way to do this but this is what just came up to my mind. Hope it sets you on the right track.

    However, make sure you can check the transitions between days are smooth.

    You should also consider saving these values to text files in the user's documents in order to be able to retrieve them when you close/re-launch the game (Node-Webkit object). If you do so, consider discarding what I wrote at the beginning (On Layout Start: Set WeekDay = 1) but replace it with

    On Layout start : if file exists set your values to each existing file

    if doesn't exist then create the file. (use the "i" keyboard shortcut to invert a condition)

  • No problem! Good to hear you found an answer.

  • Hi Kossglobal.

    Here are the few things I'd recommend:

    • Avast has an on-the-run analysis feature which scans running programs, perhaps it's scanning Construct 2 continuously and causes the "lag"
    • While running Construct 2, hit Ctrl+Shift+Escape then give a look at the performances and if the status of the green bars, then look at the processes, their CPU and memory consumption. See if anything seems weird in there. By the way, on a "healthy" and well maintained system, you shouldn't have more than 25-30 lines in there. If you have much more, you might also want to check out your startup programs with a tool such as Ccleaner of Spybot.
    • Uninstall / Reinstall Construct 2.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I sure will!

    Optimization is a tricky think, which is why one should always test on all kinds of different specs all the way through development to ensure optimal performances.