grigrizljac's Recent Forum Activity

  • When testing the limits, I found out that really long keys (sometimes longer than 110 chars, sometimes longer than 256 chars, but for sure at 2048 chars) all produce the same encrypted value. That means anyone can decrypt them using any key long enough (doesn't have to be the same length, just very long).

    Where and why is this limit?

  • > As a standard they should all play and overlap based on that logic so your actual sound is probably cut off when it plays once?

    >

    It is cut off everytime a new explosion object is created.

    Sound effects should go to "Sounds" folder.

    Just checked, audio files in Music folder are cut, audio files in Sounds folder can overlap.

  • Check this Manual entry, property Fullscreen in browser https://www.scirra.com/manual/66/projects

  • It's in the exported index.html file, line 48–57. Removing this should remove the warning.

    	<script>
    	// Issue a warning if trying to preview an exported project on disk.
    	(function(){
    		// Check for running exported on file protocol
    		if (window.location.protocol.substr(0, 4) === "file")
    		{
    			alert("Exported games won't work until you upload them. (When running on the file:/// protocol, browsers block many features from working for security reasons.)");
    		}
    	})();
    	</script>[/code:38ihjkb8]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Rex's CSV2Array plugin may help you, but it is only available for C2, as far as I'm aware.

  • Hi, I want to get a webpage's HTML.

    I tried with AJAX Request URL (webpage's URL) and then get the page's HTML from AJAX.LastData. My problem is it does not always work, for example, it does work with

    AJAX Request: "http://www.nationalgeographic.com/"[/code:3640r9pw] but it does not work with [code:3640r9pw]AJAX Request: "http://www.scirra.com/"[/code:3640r9pw] Anyone got a clue?
    

    It's because that's what they've set on their servers.

    "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'yourIP:50000' is therefore not allowed access."

    If you set "Preview browser" to "NW.js", it will work because it will run as an app locally. Similar story will be present when exporting – I'm pretty sure if you export to HTML5 and upload to your server, it won't work. However, NW.js and Androdid export should work.

    When previewing in Chrome, there is one trick you could try – disabling this warning. Make sure only to use this when testing, not when browsing normally, because it could potentially be dangerous.

    If you open cmd at the install directory of Chrome and type in the following code, Chrome will open with the warning disabled:

    chrome.exe --disable-web-security --user-data-dir[/code:3640r9pw]
    (make sure you close all Chrome instances before that)
    
    After you're done with testing, closing all Chrome instances will revert Chrome back to normal mode.
  • + Asteroid: Is overlapping BulletLaser

    ----+ Asteroid: Pick top instance

    -----> Asteroid: Subtract random(?100?) from Hp

    -----> Asteroid: Subtract random(?100?) from Hp

    + Asteroid: Hp = 0

    -> Asteroid: Destroy

    // To add - for every -1000 hp of the asteroid make him drop loots

    + Asteroid: LootHp = 0

    -> System: Wait 0.01 seconds

    -> Player: Spawn PowerUpsHP on layer "HPbar" (image point 0)

    -> Asteroid: Set LootHp to 1000

    its not working whats wrong

    You're subtracting from Hp twice (I guess you should once from Hp and once from LootHp).

    One more thing is that you use "random" two times – so a different number will be subtracted from Hp than from LootHp.

  • If you have a page embeded in an iFrame and want to call it from parent, here's how:

    [event] | Browser.ExecuteJavascript 
    "var iframe = document.getElementById(""myframe"");
    if (iframe) {
       var iframeContent = (iframe.contentWindow || iframe.contentDocument);
         var doc = iframe.contentWindow.document;
    
    // Your code here
    
    }"[/code:1a2x6fsr]
    
    You place your js code there inside, just as you would normally.
    
    Also make sure your iFrame has an ID – in the upper example, the ID is "myframe".
  • You do not have permission to view this post

  • As far as I'm aware, it has to do with colour profiles. Chrome for Windows, for example, uses some colour profiles, which make look your sprites a bit different than they look in the editor. That might become a bit problematic when using ReplaceColour effect, because the output colour is different than you'd expect, hence the effect might not recolour your sprite.

    I hope you find the answer.

  • Nope, missing 3rd-patry plugins (so I can't open my c2 projects), free edition is not really useful, it is still in beta with many bugs and lacks of certain things. Also some keyboard shortcuts (ctrl + tab, ctrl + w, etc.) don't work. I don't really like the save system, I hope to see support for browsers to save to some local folder (which the user can select; one folder per webpage) in the future.

    Though I like the fact it is browser-based, as it pushes the limits of HTML5 forwards, which is great for HTML5 games.

  • Can confirm.

    Interestingly, when it disappears, if you press E again (before clicking anything), you get the dialog to bring the first one back.

grigrizljac's avatar

grigrizljac

Member since 25 Jul, 2013

None one is following grigrizljac yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies