oheller25's Forum Posts

  • 3 posts
  • I'm having weird Firefox behavior too and this is the closest thread I've found. What conflicts specifically did you resolve?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This came to me in a flash of inspiration today. So fast that I didn't even search the forums to see if this has already been suggested, so, if it has, I'm an idiot. <img src="smileys/smiley1.gif" border="0" align="middle" />

    What I realized today is that I can use Sprites (really any object that takes instance variables and can be instantiated) to simulate classes. For example.

    I'm making a crude slideshow maker. You place objects on frames and only the objects on the current frame are visible. What I realized is that I could make a Sprite with no image, call it "Frame", and give it whatever instance variables I want. Then I stick its UID in the "frame" variable of each of my objects. This simulates something like:

    class Frame {

    int value1;

    int value2; }

    class Object {

    Frame frame;

    }

    Now instead of "frame" just being an integer (or a row in an array), it points to a robust object that can have its own instances, etc. If I really wanted to get crazy I could even give "Frame" its own specific functions. Inside the Function call, I check if the object being referenced has an existing Frame in its "frame" variable, and if it does, the function proceeds. If not, it doesn't.

    And I can create and destroy Frames easily. I can manipulate them better than an array with For Each (ordered).

    This is a huge hack. I obviously shouldn't be using sprites for this. So:

    Why not make a "Class" object and allow objects to have Class-specific variables (i.e. "Frame frame" above)? Why not then hardcode in Class-specific functions? It would be SO powerful, and it's all within reach.

  • Link to .capx file (required!):

    docs.google.com/file/d/0B3KBnviLHFtndDZJazZxWk9NbWc/edit

    Steps to reproduce:

    1. Use AJAX to request a string (via PHP) that includes a division sign (�)

    2. Display that string inside the program

    3. Get angry at seeing a little black diamond with a question mark instead

    Observed result:

    Characters will display correctly.

    Expected result:

    A small black diamond with a question mark appears instead of the affected symbol.

    I've done a decent amount of debugging. My PHP file DOES correctly get the character (from the database, but irrelevant really). If I simply go to the URL of the PHP file, there are no errors. The problem happens within Construct 2. Maybe it's some super obvious charset kind of thing that I don't know about, but I'm getting pretty sad.

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Windows 8

    Construct 2 version:

    120.2

  • 3 posts