WackyToaster's Forum Posts

  • 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.

  • 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

  • The issue with tokenat is that you don't know how long the room name is. You can use the "right" expression to get the last character of any string.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just a round of exposing more ACE from existing plugins and behaviors would improve C3 so much already.

    I agree. As much as I like shiny new things, it's important to make sure everything else is as robust and versatile as it possibly can be. I do think the recent updates actually have been doing quite well in that regard (HTML Layers, Dynamic layers, access to the collision engine in js are all improvements to already existing things) but of course there's still some stuff I'd like to see (e.g. ability to manually set/get(pick) the "floor" object of the platformer behavior)

  • I gave it a vote although it's not the best timing because I suspect this suggestion platform will be closed in favor of a new one in 2-3 weeks anyway. (As per yearly tradition)

    I think this would be a great update for tilemaps that would open up quite some interesting possibilities. Of course the shiny new thing often wins the votes, but sometimes an update to an "old" thing is just as important.