tanoshimi's Recent Forum Activity

  • Pathfinding is a strategic operation - it certainly shouldn't be recalculated on every step of an update loop, and preferably much, much less than that. Nor should it necessarily be calculated for every instance in the game. Some alternatives:

    • Are your zombies moving as a group? If so, just calculate a single path for the "leader" zombie, and make the other zombies follow the leader.
    • Make each zombie lay a (invisible) breadcrumb trail. When any zombie finds whatever target it is they were looking for, tell the other zombies to follow the breadcrumbs it left to get to the same location.
    • Scrap pathfinding altogether and implement a steering behaviour to navigate to a target destination while steering (i.e. swerving) round obstacles. e.g. http://www.red3d.com/cwr/steer/Obstacle.html
  • To get slightly more interesting/realistic behaviour, you might want to read up on Craig Reynolds' "Autonomous Steering Behaviours" - red3d.com/cwr/steer

    For this example, what you're describing is the "Flee" behaviour, which applies a steering force (an acceleration, if you prefer) in the opposite direction from the direction to the player. However, I strongly encourage you to read the other behaviours too.

  • Time to post your .capx, I think...

  • Are you including the event sheet in which the array is populated on the layout in which you're trying to print it?

  • The function plugin let's you write a block of events that can be called and reused from other places in the event sheet. It can optionally set a return value. It's an "official" part of c2 and documented in the manual.

    If you mean that you want to write a JavaScript function, then you can do that too - read the SDK documentation about creating a custom plugin.

  • What's your target platform? The HTML5 navigator.getUserMedia() API exposes access to the microphone, but support is currently very patchy (I think limited to Chrome only under Win, not sure about mobile platforms)

  • Oh, that's a great presentation squiddster - very impress.js :)

  • I'm doing a presentation on A.I. in two days' time, and have used C2 for all the slidedeck and demos: meetup.com/NorfolkIndieGameDevelopers/events/104596392

    sqiddster - the link to your capx is broken - I'd be interested to compare how you set up the project for your presentation (I use one layout per slide, with a global event sheet that controls transitions between slides and some slide-specific event sheets for interactive demonstrations of the topics on each slide).

  • You only have coordinates to the odd-numbered positions? How do you know where to place 8 then? And for the previous arcs, how do you decide whether to go clockwise or counterclockwise from the previous chord? Are these Cartesian coordinates or polar coordinates?

    I think a bit more explanation or a caps would help!

  • Set the origin point to be the same in both frames.

  • Posting your .capx here might be a good start... :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Dammit - blackhornet just posted before me!

    Change the line <saved-with-version>11900</saved-with-version> in the .caproj file and it should open fine.

tanoshimi's avatar

tanoshimi

Member since 4 Jan, 2013

None one is following tanoshimi yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies