Move location of spawned actors
kristen.saluma@hotmail.com
Member Posts: 3
Hi,
I'm making an arkanoid type game where the rows of blocks move down.
I've randomly spawned a row of blocks, now I would like it to move down once a condition has been made (an attribute hits 0).
The x and y locations of the spawns are stored in a table, how would I be able to move the row of blocks down (y location)?
If you need more information, please let me know
Thank you in advance!
Comments
if attribute = 0
change self.position.y to self.position.y - (value) (go down)
change table value (specific row and column for each spawn) to self.position.y to store the new y position to the table
I think this is what your looking for if i understand you correctly.
Icebox's method is far more elegant and smart than what I've done in this situation. I basically just put something like below
if attribute = 0
{
timer: For (1 second)
{
Move (270[Down], 30 [speed])
}
}