I don't understand clearly but as a starting point, if you want to recreate an orbit for an object, you can achieve it with a bullet behavior and a rotate behavior
As far as I know, if an object is not on screen, or invisible, it's not "drawn", so probably no impact on performance on the graphic side.
use a function to spawn the enemy, then , after the spawning action, check for the position... if its teh same of the player call the function again.....
the loop will continue until the spawned enemy is not on the same position than the player
an easier way would be to have 4 instances of a sprite (top, bottom, left and right of the screen) and every 30 secs, pick random sprite, spawn boss.
you can check my old tutorial on asteroids, where teh asteroids spawn (almost) randomly following the same principle.
as far as I know, any condition that is not a trigger (the green arrows) will be checked every tick
Great job. I bought mine the other day and can't wait to explore the event sheets. I already have a concept to use with this template and you just saved me a lot of research time.
Thanks, I hope you find it useful. If you have any doubt just send me a mail. Good luck!
I see... its triggered all by the On Screen Ive come up with this instead But when want to destroy it - it goes for all What am I missing cheers Don't understand what you're trying to do
I see... its triggered all by the On Screen
Ive come up with this instead
But when want to destroy it - it goes for all
What am I missing cheers
Don't understand what you're trying to do
you can use a FOR loop.. (FOR 1 TO 2) pick random instance and spawn... the problem is that the Is On Screen will trigger it again (I don't know what is above that event)
using a timer is the most simple method
when you're facing left, when you spawn the bullet set it's angle to 180°, that's all
You do not have permission to view this post
http://www.scirra.com/arcade/addicting- ... otmer-test
http://www.scirra.com/arcade/addicting- ... c2fighters
http://www.scirra.com/arcade/addicting- ... /unchidrop
Develop games in your browser. Powerful, performant & highly capable.
But always read the license.. Usually any royalty free asset (sound, image or templates) allows only 1 use for comercial projects. And you need to buy it again for another project.
If you need some melee action in Beat'em up / platform style you might want to check my template https://www.scirra.com/forum/beat-em-up-platformer-templates_t124000. It's on the store
-Collision groups/layers
-exporting event sheets as behaviors (global variables can act as the editable properties)
-or assigning event sheets to objects (like scripts in other engines)