inquiesco's Forum Posts

  • Let me know how it goes, I didn't try test this out myself but the code makes sense, . You can, of course, change the figures to your liking.

  • What do you mean by "keep the default value as blank"?

    Edit: okay so what you said worked, but one of my files will not show text objects when i run the game. It's visible in the editor, but not in the game. And its on the top layer, and set to visible, i don't know what's going on. is there a know glitch that causes text objects to disappear?

    Not that I know of. Can you export your project .capx file so I can take a look at debugging it?

  • I'm experiencing no issues either, not sure what's causing your problem, unfortunately. Could be it another counter in your code somewhere, perhaps?

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

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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?