AFnord: Could someone lend me a hand? I have two objects that bounces between two other objects. Each time they meet, I want them to spawn another randomly selected object. I know how to set a "spawn object" command, but I don't know how to tell it to spawn a random object.
And for that matter. I can't seem to set the angle which I shoot in. When I hit space I want the main controllable object to shoot. Currently it only shoots to the right. I've tried to "set angle of motion", which had no effect. I've also tried to set "move at angle" or "move forward" (with different angles set to the object that is supposed to be shot out), but it just keeps shooting to the right.
There is a difference in "angle of motion" and "angle" the overall angle will also have an impact on the angle of the bullet item you shoot.
If you like, you can send me your capx and I will have a look into it to point out what to do.
For the random spawn, this is a bit more difficult. At the moment, Construct2 does not allow a random selection, you have to work around of this.
Example:
Create a global variable: spawn
When something has to be spawned, calculate a random number (one number for each different spawn object you have).
Create Events based on the number, you have generated... on 1 spawn this item, on 2 spawn that item, and so on.
Main problem with this, you will need to use some events, that are limited in the free edition.
What you can also try is to look into the Forum of Construct and look for a plugin, that may help you. Or develop your very own plugin (all you need to know is JavaScript *gg*)