WackyToaster's Recent Forum Activity

  • Set text removes all previous content. Try append text.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Long overdue that I put that out. Thought about selling it but I can't be bothered. I appreciate donations tho! This is a basic implementation, nothing too fancy here but you can build upon it.

    Subscribe to Construct videos now

    What does it do?

    - You input a target Angle (the direction the object "wants" to go in)

    - Enemies shoot out a bunch of raycasts, that then detect walls and other obstacles.

    - After some math stuff this results in a new angle

    - Move enemy towards that angle

    Long story short, enemies will avoid obstacles.

    wackytoaster.itch.io/context-based-steering-for-construct-3

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

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

WackyToaster's avatar

WackyToaster

Member since 18 Feb, 2014

Twitter
WackyToaster has 26 followers

Connect with WackyToaster

Blogs