Wastrel's Forum Posts

  • Ashley, yeah, sorry about wasting your time.

    On a positive note, I discovered that Balloon was spelled wrong in the error message, so I guess it wasn't a total waste. <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Thanks for the update, Kyatric!

  • From what I've learned, you can't access the instance vars by name, because the minifier converts all full variable names to minified names. You can access them using an index number, as you mentioned in the OP, but that can be an unreliable solution. If instance vars get added or removed, then your index changes.

    If your solution works, then that is probably the best way.

  • One question: how much do you like JavaScript programming? <img src="smileys/smiley4.gif" border="0" align="middle" />

    The reason I ask is because, outside of the static UI and some of the basic UI controls (tabs, check boxes, etc.), you will most likely need to utilize or modify third-party plugins, or create your own customized plugins and/or behaviors, for the less game-like aspects.

    You may need a customized text entry control, scrolling text output windows, scrolling list boxes, drop down and multi-select boxes, etc.

    Third-party plugins do exist for a lot of these, but they may not fully meet your needs. You also might have conflicts between the third-party plugins and the native Keyboard and Mouse plugins, so you'd be looking at creating customized versions of those as well.

    I've been working towards something similar to what you're describing, and it has been a lot of work (fun work, if you like coding!). If you aren't much of a coder, don;t get discouraged, because once it sinks in, it is a lot of fun. If you are a proficient coder, then there should be nothing stopping you.

    I hope that helps.

  • What kind of customization do you want to do? Can you give an example?

    You can add instance variables and behaviors to objects, which allow a certain level of customization.

    To change the inner workings of an object, or create new object functionality, you need to use the JavaScript SDK and make your own plugins or behaviors.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I believe this is the same issue I had with the Keycode plugin, where the native Keyboard plugin would over ride the Keycode jQuery calls.

    From what I can tell, the info.preventDefault() calls in the native Mouse and Keyboard plugins suppress all other jQuery calls that come after. The calls can be found in the Mouse plugin on lines 127, 149, 165, and 187.

    Other than writing your own Mouse plugin (or modifying the native Mouse plugin, for personal use only, of course), I haven't been able to figure out a workaround.

    I hope someone can tell me I'm wrong, or provide a workaround for the preventdefault calls.

  • Oh yeah, I forgot about the text compare in the object. <img src="smileys/smiley9.gif" border="0" align="middle" />

    Then just do this:

    <img src="https://dl.dropbox.com/u/38038537/pictures/TextCompare.png" border="0" />

    Using Ignore Case will get you the same results as my previous post.

  • ^^ What he said!

  • You will need to use a System: Compare Two Values condition to compare the values. Then use the System.uppercase function, like so:

    <img src="https://dl.dropbox.com/u/38038537/pictures/SystemCompare.png" border="0" />

    Text.Text is the text value from your text object.

  • I just started getting this error message when I open Construct 2, R104:

    <img src="https://dl.dropbox.com/u/38038537/pictures/BalloonTips.png" border="0" />

    I am running on Windows 7, 64-bit.

    I have attempted the following:

    • reset dialogs
    • checked to make sure balloon tips weren't disabled in Windows
    • uninstalled C2, deleted the install folder, re-installed C2
    • checked to make sure my video drivers are up to date :D

    It happens whether I open C2 directly, or open a previous project from the recent file list.

    I wasn't getting this yesterday. The only thing that has changed since yesterday was the installation of some Logitech h800 Bluetooth headphones. I uninstalled the drivers for the headphones, but still get the same thing.

    Any ideas?

    Edit: I forgot to mention that C2 appears to run fine after I close the message box.

    Edit Deux: Never mind, I found the problem. I only looked under one registry key, but found balloon tips disabled in a second registry key.

    For future reference, here is where I found the value in question:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\EnableBalloonTips

  • In reality, you've been a very smart boy, in my opinion. Giving the competition a thorough perusal should make you even more confident you made the right decision in choosing Construct 2.

    In fact, I'm pretty sure a lot of the people on this forum continue to monitor the progress of the competition. The fact that so many stick with C2 should give you even more confidence in your decision.

  • Luke,

    First, welcome to the community and to Construct 2!

    Second, for future reference, you can Save As... to a single capx file, which makes it a lot easier to share projects. That way you don't have to zip the files.

    Third, regarding the main issue, you have to remember that C2 is event-based, and that the game loop runs through all events in order, from the top of the sheet to the bottom. Thus, your For Each loop is executing every tick of the game loop.

    To fix this, create a System -> On Start Of Layout condition, and move your For Each loop block underneath it, as an indented sub-event. Then you should see the results you are looking for.

  • The javascript function getTime() returns the number of milliseconds since midnight Jan 1, 1970 and will always be unique. If you can use this variable it will solve your problem. The problem is how to implement this solution.

    In case this is the way you want to go, check out this plugin: http://www.scirra.com/forum/plugin-system-date-and-time_topic45206.html

    Specifically, the UnixTimestamp expression will give you the number rfisher is talking about.

  • I thought the point of a constant was that the value could not be changed. Or is the issues that it throws an external check error check instead of an internal Construct error? Am I missing something?

  • I don't understand why creating behaviors and plugins with the JavaScript SDK is not considered on par with (or superior to, in my opinion), scripting systems in other drag and drop game making apps. Once you get the hang of it, creating behaviors and plugins which add, modify, or even create new functionality, is rather easy. You're just moving the scripting down one level, from scripting directly in an object to an external bit of code.

    I've had experience with various DnD systems with built-in scripting, and by far I think the JavaScript SDK gives me more power and control than a built-in system ever did.