smassa's Forum Posts

  • Thanks

    I wonder if I could check the orientation and pause the game with an overlay asking to tilt it back before resuming.

    I'll try it later and post back here if its possible...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Either on Safari or Chrome for iOS it won't lock the screen orientation, is there any way around this? On Android it appears chrome obeys the orientation lock.

    Thanks

  • zeropad(number, digits)

    Pad number out to a certain number of digits by adding zeroes in front of the number, then returning the result as a string. For example, zeropad(45, 5) returns the string "00045".

    from:

    https://www.scirra.com/manual/126/system-expressions

  • use the turret template... Remove the turrent moving controls when you touch the wall....

    Use a touch event to spawn a "enemy object" where you want them to spawn... you could create objects that give options to where you can spawn them...

    they will move towards the target and you can place turrets to create the levels..

  • What level of control over the enemies to you want to give?

  • thanks for all the feedback guys... monday morning i'll adjust with the tips given and reupload....

  • Hey guys,

    I'm new to construct. I work in an advertisement agency and we decided this year to make a game as a Christmas card for our clients. Can you guys give us any feedback? Is it too hard?

    http://www.shifty.com.br/papainoel

    It's more optimized for mobile btw...

    You basically fly around in the sled with santa, you touch to move up, and as you collect gifts you can toss them in the chymneys by pressing the blue button on the bottom left or the right mouse button on the PC.

    I appreciate any feedback, thanks...

    EDIT: Updated the "throw gift" button... and changed movement to be according to if the player is going up or down..

  • There probably is a better solution like I said... only been at this a couple days myself... hope I can help..

  • i'm new here, probably a better way, but i'm guessing the problem is with the physics...

    would faking it work? Something like the attached image..

    Not complete, but would give the illusion of the dragging physics..

    You'd have to limit the rotation and reverse it when the person is going backwards...

  • In case it helps someone, did it thru webstorage object.

    Rename the app html file to php, and just save it in the jquery call that creates the c2 canvas.

    jQuery(document).ready(function ()
    {			
    	// Create new runtime using the c2canvas
    	sessionStorage.myid= <?=$_GET['id'];?>;
    	cr_createRuntime("c2canvas");
    });
    [/code:bdksjpoc]
    
    Then just get whatever parameters you want in the event editor with webstorage object with expression:
    
    [code:bdksjpoc]WebStorage.SessionValue("myid")[/code:bdksjpoc]
    
    Thanks
  • Let me elaborate on what i'm trying to do..I want to prototype a racing manager sim (used the simple AI by SeriouslyCrunchy with some modifications as a starting point, thanks btw)...

    Basically, I wanted the actual construct game to only play out the races..

    So I would pass parameters when the race started with driver stats, and car performance, as well as starting fuel for pit stops, etc.

    The entire "management" part to be written with php, but I can't seem to find anywhere where I could get parameters passed on to the actual construct html... Is that possible at all? Perhaps add a javascript function that gets called when the layout is loaded that will pass the parameters?

    Thanks...

    EDIT: Tried posting the URL to the actual construct app but it would'nt let me for low rep... putting it again without the link... thanks

    shifty.com.br/sergio/construct_test

  • I searched a bit before posting this, but could'nt find anything.. Might have missed it given that i'm amazed at how helpful the documentation and tutorials for construct are..

    I'm using construct in my game as a "match engine" sort of deal, where the entire game interface is separate, except when playing the actual match.

    I need to be able to pass parameters in the URL in order for the construct app knows which match its currently playing and is able to pull the data from the database.

    How do I access URL parameters on the start of the layout from the actual canvas html?

    Thanks....