inquiesco's Recent Forum Activity

  • System -> Every 2 seconds

    Create Object platform on layer x at (player.X + 150, random(10, layoutHeight))

    If you wanted the platforms to be random width and height, change it to the following:

    System -> Every 2 seconds

    Create Object platform on layer x at (player.X + 150, random(10, layoutHeight))

    platform -> set width -> (random(20, 150))

    platform -> set height -> (random(20, 150))

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • As for 'how to quickly make one', right-click the Event sheets group in the Projects tab on the right, then select Add event sheet. You can then use the drop-down method described above to set a layout to use the new event sheet.

  • Hmm, I'll have a look into it, thanks, . Might be back here with more questions, ha ha.

  • Hi,

    I'm currently creating a top-down space exploration game, and am working on the AI side of things today. I've got AI enemies spawning from System -> Create Object and then moving to the player through fam_enemies_sml -> Set angle toward (player.X, player.Y), and moving via Simulate Car pressing Accelerate but this naturally moves the enemy to sit on top of the player object. How could I implement AI movement towards the player to within a certain distance at any angle?

    Furthermore, how could I make the AI circle around the player? The only thing I can think of for the latter thus far is making four variables, being top, bottom, left and right around the player, then setting them to player.X or .Y minus distance variable, updating each tick and moving the AI to each in sequence? No idea how I'd pull that off though as of this moment.

  • You do not have permission to view this post

  • Ah, in that case you want to look at the IAP object documentation for more information. It only supports some stores, though.

  • I can't explain why it's doing that, but for starters you have five separate System -> Every Tick events when you can move all those actions into one Event. When doing that (because there's no reason they should be separate to begin with), it works fine. The bar for me is 100%, and when I change the Enemy health value to 90, the bar is less as expected.

    Link to working version: https://www.dropbox.com/s/z23r1n8l864s3cx/project88_debug.capx?dl=0

  • To earn revenue from your game you need to purchase a personal license or business license. The personal license allows you to earn up to $5,000 from your game, and the business license allows you to earn unlimited funds.

  • Not sure on that as I'm just diving into Construct 2 in earnest myself and am currently not sure of how to monitor CPU usage while debugging, but I've been using LOS for a few enemy AI at the moment because it's the only way I could check distance and object facing.

  • Give the enemy the Line Of Sight behaviour, then set their Range attribute. You can then make an Event to trigger when the enemy has Line of Sight, which automatically checks the range input.

  • thanks Sisyphus for the tips , i will try that out ,

    im actually an illustrator who has been illustrating for so many developer , so for once i want to develop an app of my own . im wondering if there is anyone else who able to create an interactive games or storybook with construct .

    I'm sure there will be people out there creating interactive storybook games with C2, it's a genre gaining fresh attention these days, and programs such as these make it easier and more accessible for everyone, . It all depends on the kinds of player interaction you want to make as to how hard certain things might be.

  • Oh, sorry, the phrasing of it made me think you set the variable to 100 in an Event, .

    Could you post up the .capx so I can run and debug it?

inquiesco's avatar

inquiesco

Member since 26 Jan, 2013

None one is following inquiesco yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies