An 2D array is like an excel document. It is like a rectangle of information. They can be modified easily with the "for each element" condition, for example. You can write a function and let this function store all the information you mentioned in the array.
Manipulate the time scale. Construct 2 has powerfull time manipulations.
if there is three or more bugs are the same it will be destroy
I didn't totally understand what you mean. I made a .capx and you say if this is what you wanted.
I think this way it would be better, so the player can see what bug comes next and where to shoot it. But it has a small bug if you press fast, all bullet will turn to your mouse. I can fix this later.
No it is easy. You need a 1D array. Each value represents the stars earned in the level.
X axis of the array ->
2, 1, 3, 2, 0, 3, 2, 3, ..
https://www.scirra.com/tutorials/307/ar ... ers/page-1
A 2D Array. https://www.scirra.com/tutorials/307/ar ... ers/page-4
Yes. You can check their frames if they are the same. What do you mean by "stop behind its same type"? Do you mean a red bug cant destroy another red bug?
It is one bug object with 3 frames (3 pictures) of bugs. If one bug is shooted then one frame will be choosen randomly, so the bug looks different.
Do the bugs have different effects or do they just look different?
I have made you an example on how I would do this.
Develop games in your browser. Powerful, performant & highly capable.
Ziteng You're welcome.
Substract 90° from the angle. It has to be -90° I think.
If angle <= angle you want - "angle to increase" / increase angle by this value.
Example:
You want it to rotat until its angle is 270°. You rotate it by 10°.
If angle <= 270-10° / angle +10°
If the angle is 260° it will add 10° and then stop.
since this evaluation happens before the action, the else will not be triggered
Oh, I didn't know that. You never stop learning.
This will also not work. Because the first condition will trigger the else statement.
He has to use a boolean and reset it with key release.
I have to go now. I will post a solution later, if the problem then still exists.
If you set c_haut to 1 then the second code triggers immediately, because then c_haut is 1. You have to structure it another way.
Use "delete index".
Look at [6].
https://www.scirra.com/tutorials/307/ar ... ers/page-2