Looks good to me ;)
to make it move nice and smoothly, apply this formula to the X value every tick to move it side to side:
(distance from left edge + modifier * sin(time*modifier))
Play around with the modifier values to get it to move faster and / or further.
This is cool... perhaps a hold-to-charge mechanic would be more intuitive?
It seems good, but that is a lot of work (it seems all objects have to be placed by code), and when I have 80 or so objects... And I only get one layer. Perhaps Ashley or Tom could let us know the way it was intended to work...
Has me stumped too :)
Look closely at the bounce when the ball hits the top or bottom of the middle wall. It is certainly wrong.
For each object, there is an option to import as many separate animations as you want. Right click in the 'animations' box on the right of your screen when you are in the 'edit animations' window and click 'new animation'. Now you have the capability to add as many animations as you want for a single object.
These animations can be changed and manipulated by the event sheet.
Develop games in your browser. Powerful, performant & highly capable.
Create a square wall_x in the middle of the field. Whenever the ball hits the top it goes right through.
inkBot It seems to work. Will there be problem when there are all different enemies everywhere splitting at different times? That is what I need.
EDIT: never mind, it works fine (I took out the 'for each' loop).
Here is a (quite cool) example .capx
dl.dropbox.com/u/41931267/Splittr.capx
Well as you can see the correct amount of sprites are being created but they are jumping to strange positions...
It goes into the ends of the walls if I reposition them in your example. Try it.
onzephyr Your method is good but there are a few bugs when I use it for my purposes. See the problem here:
I managed to do the same thing as you, but with the bullet behavior. The ends of walls, however, present a problem.
I have an animation for an enemy type which splits into two of itself. There are two image points in the animation for where to spawn the two new enemies however my code does not work:
<img src="http://i.imgur.com/2ceOD.jpg" border="0" />
It spawns one enemy at image point 1 but none at image point 2. Strange things also happen.
Any tips?
Excellent! thanks alot.