Spawn object to spawnsprite

0 favourites
  • 6 posts
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • Hi!

    I am using an spawnsprite to spawn objects at random intervals to set places in the layout.

    My problem is that it is not checking if the "spawnpoint" is empty. And that leads that objects spawn on top of each other on my spawnsprite.

    Any way to avoid this?

    <img src="http://s23.postimg.org/5k2ikzusr/Sieppaa.jpg" border="0" />

  • I don't know what events you are using to spawn the sprites, so I don't know if this will work, but you could check if a spawned sprite is overlapping the spawnsprite and if so don't spawn.

    (I couldn't see the image before, but now I can and checking for overlap should work)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ugh one problem still :D

    So, I should add a condition with "Spawn is NOT overlapping ES" but i can only get "spawnpoint IS overlapping with ES" Is there a way to "reverse" it?

    Or do I need to do the check in another way with a sub condition or something?

  • Oh my god i feel so stupid, found the invert option myself... Thanks a lot you guys for the help!

    New question though, I want to adjust my characters maxspeed depending on a global variable "health", any good advice how to achieve this in a simple way?

  • Oh my god i feel so stupid, found the invert option myself... Thanks a lot you guys for the help!

    New question though, I want to adjust my characters maxspeed depending on a global variable "health", any good advice how to achieve this in a simple way?

    If your character uses the platform behaviour, you can change the Maximum speed, by setting it to health*some_number_that_should_fit_it, or another formula

  • > Oh my god i feel so stupid, found the invert option myself... Thanks a lot you guys for the help!

    >

    > New question though, I want to adjust my characters maxspeed depending on a global variable "health", any good advice how to achieve this in a simple way?

    If your character uses the platform behaviour, you can change the Maximum speed, by setting it to health*some_number_that_should_fit_it, or another formula

    So simple, so elegant. Thanks a lot! Now I am getting the hang of the event sheet <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)