-
Items on Arkenoid
I'm making a custom version of Arkenoid (Block Breaker Game) with MMF2, and I have my main system for it. All of the blocks are the same Active Object.
Is there an expression or code that I could use to make it so that items are randomly created underneath the blocks and move downwards?
-
Re: Items on Arkenoid
Ive made a bat an ball clone, and i just put in special bricks inbetween all of the main blocks, then mixed them all up. Yes that does then mean coding each special block and an item being created from its position, but once youve done it for one its pretty easy to replicate and copy between frames and levels.
Jason
-
Re: Items on Arkenoid
But I don't want it to be the same pattern every time. Eventually people will pick it up.
I was thinking more along the lines of a random brick getting chosen as an item brick at the beginning of the frame (using expressions) and then dropping an item when hit.
-
Re: Items on Arkenoid
Just use the start of frame and pick one random object of conditions for the brick and set on a flag for the chosen brick which then is used to create an item if that brick is hit with that flag on. Either that or if you want more than one to create items just have a random variable value be generated when each brick is hit and if it's a certain value then the item is created when it's disappearing animation is finished.
As for the item, have it's X position always be set to it's own X position + 1.
-
Re: Items on Arkenoid
Do you think somebody can make an example for this? I am still having problems.