WackyToaster's Recent Forum Activity

  • Most guns in games are indeed not projectiles. Raycasts is correct, also called hitscan. Hitscan = raycasts.

  • I also recommend a dictionary in this case. You can then save it with Dictionary.asJSON

    Would doing something like Set Key: "Variables" Value: Variable 1 | Variable 2 | Variable 3

    This works but isn't as clean. You'd do

    variable1 & "|" & variable2 & "|" & variable3
    

    And when you get them back you'd

    Set variable 1 to tokenat(valuefromstorage, 0, "|")
    Set variable 2 to tokenat(valuefromstorage, 1, "|")
    Set variable 3 to tokenat(valuefromstorage, 2, "|")
    
  • I dunno what to tell you, it's right there

  • Without reading too deep into what you're actually trying to do...

    Do you really want the keyboard inputs to be ASYNCHRONOUS to the game?

  • You can try it like this. If two or more sprites overlap, it will drag the bottom-most sprite. The dragging behavior is initially disabled.

  • I should have added, I'm on Windows/Chrome

  • Yeah I noticed that too. Usually the login would stay active for quite a while at least, but since maybe a few weeks ago I'm consistently getting logged out. At first I thought it's maybe because I keep jumping between versions but it keeps happening regardless. Basically I have to login every day which was not the case before, and I'm not aware of changing anything regarding settings/cookies/plugins etc.

  • Some websites don't allow themselves to be embedded via Iframe. W3schools is one of them.

  • What are you trying to display inside the iframe?

  • I've been tinkering a bit more with the feature, but since I wanna do more stuff in javascript I was bit limited since there's no API for the flowchart (yet). But the point is I just couldn't resist finding some ways to circumvent the restrictions with the power of javascript. Thought I'd share.

    The ~ denotes an option with an expression inside and I use eval() to then execute the logic inside the value. If the result is an empty string, the option is not added.

    	async function addOption(optionName, optionValue) {
    
    	var evalOption = /^~/i;
    	
    	if(evalOption.test(optionName)) {
    		optionValue = eval(optionValue);
    		if(optionValue === "") return;
    		await globalThis.UImain.insertContent(`<div class="option" id="${optionName}">${optionValue}</div>`, "html", true, ".options");
    	}
    	
    }
    

    It's moderatly elegant I'd argue unless you're scared of eval() lol.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The drag & drop behavior already only drags a "specific" sprite (the top-most sprite based on z index), at least when I tried it.

    It's a bit unclear what exactly you're trying to do. Do you want to drag a different sprite than the one that was clicked?

  • Yeah, got bricked by this change in the recent beta to also save flowcharts. The error actually changes slightly if you add a flowchart to the project.

    Flowcharts: save and restore state with savegames

WackyToaster's avatar

WackyToaster

Member since 18 Feb, 2014

Twitter
WackyToaster has 26 followers

Connect with WackyToaster

Blogs