schippie's Forum Posts

  • 9 posts
  • I have to say i am incredibly impressed with those examples Ramones. They really are amazing.

    Especially the mode 7 effect could achieve more or less the same effect as the example above. Though i am not sure if it would be possible to create hills with that technique.

  • Hey and thank you jgordos / rory. I somehow expected it to be with sprites. And then draw your road further and further with each tick or something like that. Instead of how it is done now everything is drawn when the game is fully loaded. Guess its easier to look at the code (since its free for use) and improve the game through regular javascript. Instead of having to recreate everything within construct 2.

    Thank you anyways for your help :)

  • I am not sure if this is more a topic for this forum or for the how to section so if this is the wrong place please move it to the correct forum.

    My question is more if it would be possible to make a game like:

    • http://codeincomplete.com/projects/racer/v4.final.html = final game.
    • http://codeincomplete.com/posts/2012/6/22/javascript_racer/ = article.

    <img src="http://codeincomplete.com/posts/2012/6/22/javascript_racer/racer.v283.png" border="0" />

    With construct 2, and if so what would be the general tips for creating such a game and if / if not it would require plugins to achieve it with construct 2? The way he does curves/hills and pseudo 3d is quite nice so.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a problem with this plugin and i was wondering if somebody would be able to assist me.

    The problem is as follows. The plugin does something that causes data not to be loaded properly. Which means the game either never gets past the loading bar or never loads in all the objects and just some. Also any of the javascript code stops working because of it.

    Quick note on this to, you dont actually have to call the plugin anywhere in the event sheets or use any of its functions to make it break loading in a few browsers.

    And this only happens on a few mobile phones (wp7 IE9 + android 4.0.4). Now is my question is there any way to fix this and if so what is the fix for this?

    I tried the change mentioned by ranma but it had no effect.

    Ignore the above.. i was so stupid to use console.log to test.. and completely forgot most modern mobiles do not support it in any way.. *sigh*

  • Ah thank you always the small little things :D

  • I have found a weird problem and i was hoping that somebody would be able to help me. The problem is that when i try to load (be it a variable or AJAX) requested data into an array it does not fill an array with data. Though when i simply put the json string into the Load from JSON string it works fine.

    I have been searching around and found one other person with a similar problem to mine but there was no answer to his/her question really.

    dropbox.com/s/fhwxzuliiyvevgm/variable_to_array_problem.capx

    JSON code:

    "{
    ""c2array"":true,
    ""size"":[21,1,4],
    ""data"":[
    [[8,1,0,330]],
    [[10,2,1,110]],
    [[12,3,2,220]],
    [[14,4,1,110]],
    [[16,1,0,330]],
    [[18,2,1,220]],
    [[20,3,1,110]],
    [[22,4,0,330]],
    [[24,1,1,110]],
    [[26,1,0,220]],
    [[28,2,1,110]],
    [[30,2,0,160]],
    [[32,3,0,330]],
    [[34,3,1,180]],
    [[36,4,0,110]],
    [[38,4,1,250]],
    [[40,3,1,110]],
    [[42,2,0,290]],
    [[44,1,1,330]],
    [[46,3,0,110]],
    [[48,2,2,170]]
    ]
    }"

    In the above example i simply put the json line into a variable but i have also tried to use an ajax request (after uploading the json files/compiled project to the server) also without success.

    Its probably some really silly small thing that i am missing.

    Hopefully somebody is able to help me with this.

  • Thank you for replying, i have found a way to get variables into the game now through a different route. The callJS plugin did it.

  • Yes i fully understand that but my question is more:

    <?php

    $a = 'hello';

    ?>

    var a = <?php echo json_encode($a); ?>;

    But then apply that for the global variables in construct 2. So i could change the information in the variables based on the level dynamically. Simply by encoding the raw string data retrieved from the database.

    But i would like to prevent editing the runtime.js and rather be able to do this on the index.html(.php) page.

  • Hello,

    I am currently in the process of exploring the possibilities of Construct 2 for us. Figuring out if we can do with it what we need but i have hit a problem.

    The problem is i am trying to change one of the global variable's values through an external javascript.

    This is mainly because we want to create a game that more or less has an infinite amount of levels. So instead of letting construct 2 create levels we have decided to do this with PHP (?level=2 etc.) What i need now is a way to adjust the values of the global variables with information retrieved from the database.

    But i cannot seem to be able to figure out how to change the values of the global variables within the index.php page without using ajax/xml/json request within construct 2.

    Hopefully somebody is able to assist me with my issue. Or provide me with information if there are better/easier ways to achieve this.

    PS: Sorry for any english writing mistakes.

  • 9 posts