WackyToaster's Recent Forum Activity

  • I have made something like that before, maybe this helps.

    wackytoaster.at/parachute/ragdollWalker.c3p

    This part specifically keeps the character upright. It basically turns the body upright with a force that gets greater the further the character isn't upright. If your character stands still you might have to do something similar for the legs.

  • No access to the file.

  • Firebase has a login system with Google accounts.

  • As for the inappropriate words, you'll have to filter them out somehow. This has always been a little bit tricky, as people like to get creative with stuff like A$$ or A.S.S and such. Also you have to avoid filtering out common words like ASSemble just because they contain a no-no word. There's probably some libraries out there (https://www.npmjs.com/package/bad-words) or javascript code (https://stackoverflow.com/questions/56456144/javascript-simple-profanity-filter) but ideally you'd do that server-side and not client-side.

    And for sending scores every second, it depends a little on how the game is designed. But if you could e.g. only allow to send the score if it's a new highscore. Or there is some kind of timeout. Or it's only possible to send the score after a finished game.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I do not have this issue. I think most people don't have this issue, hence the lack of answers. You shouldn't need to add them again after updates unless you clear browser cache or something.

    You can alleviate the issue somewhat by bundling the addons in the project. When you open the project and an addon is missing, you will get an install prompt when opening the project.

  • This is limited by the framerate. It draws every frame so if you move really fast, it will leave gaps since the cursor moved so far within a single frame. You can interpolate the drawing between the old and new positions.

    wackytoaster.at/parachute/drawSmoothing.c3p

    smoothingSteps is how many inbetween steps it will draw between the old and new position. I recommend setting it as low as you possibly can while still getting nice lines.

  • Absolutely do use the manual. Sometimes certain APIs are not (yet) available, which is a bit of a bummer, and you have to make your own functions for certain things.

    let tilemap = runtime.objects.Tilemap.getFirstPickedInstance();
    let mouse = runtime.mouse.getMousePosition();
    
    let tile = positionToTile(tilemap, mouse[0], mouse[1]);
    
    tilemap.setTileAt(tile.x, tile.y, 0);
    
    	function positionToTile(tilemap,x,y) {
    	let gridX = tilemap.tileWidth;
    	let gridY = tilemap.tileHeight;
    	
    	let resultX = Math.floor((x - tilemap.x)/gridX);
    	let resultY = Math.floor((y - tilemap.y)/gridY);
    	
    	if (resultX < 0 || resultY < 0 || resultX > tilemap.width/gridX || resultY > tilemap.height/gridY) {
    		return "outside Tilemap";
    	} else {
    		return {"x": resultX, "y": resultY};
    	}
    	
    }
    
  • That's actually a good workaround :D

  • R0J0hound This is really awesome!

  • I'm pretty sure it simply means that any objects that were picked in the event that called the function, will also be picked in the function, and you don't have to pick them again. As in the two random objects I pick in the event, will be picked inside the function, which was not possible this easy previously. The function is still only called once.

    This would have destroyed ALL enemies and set the animation of ALL sprites, but with copy picked it will only do it for the picked instances.

  • That I cannot reproduce. After switching the worker mode on it works as crisp as it gets with the debugger open, which is in my case 144 fps with no hiccups.

    I'll put it in the tracker.

    github.com/Scirra/Construct-3-bugs/issues/5926

  • The browser plugin has an "Is online" condition which is probably your best bet. construct.net/en/make-games/manuals/construct-3/plugin-reference/browser

    Rather than saying that the app requires an online connection and refusing access just because you can't load an ad, I recommend using the space otherwise if you can. For example, if you have multiple games on the store and the user has no online connection, put a custom (offline) banner ad there linking to one of your other games. This can also be a fallback if an ad fails to load for any other reason.

WackyToaster's avatar

WackyToaster

Member since 18 Feb, 2014

Twitter
WackyToaster has 25 followers

Connect with WackyToaster

Blogs