playMaker

Author Topic: Tetris Style Spawn 'n' Drop  (Read 1631 times)

garrettmickley

  • Playmaker Newbie
  • *
  • Posts: 5
Tetris Style Spawn 'n' Drop
« on: March 13, 2014, 03:22:02 PM »
Hello! Can anyone point me in the direction of how I would set up a Tetris style spawn and drop? I'm just dropping random colored cubes.

I need them to spawn and drop w/in a grid and stop when they either hit the bottom of the grid OR a block below.

I'm pretty sure I can figure out how to spawn random objects but I need help with how to set up a grid and have them spawn w/in that grid and then drop down in a reasonable speed.

I have Tidy Tile Mapper as well if that helps but I don't mind not using it if someone knows how to do this w/out it.

Thanks!

garrettmickley

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Tetris Style Spawn 'n' Drop
« Reply #1 on: March 13, 2014, 04:13:47 PM »
I know how to move a cube down using Translate, so I don't need to know how to do that unless someone has a better idea of how to move the cubes down.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Tetris Style Spawn 'n' Drop
« Reply #2 on: March 14, 2014, 06:59:21 AM »
Hi,

 yep, translate is the way to go here. Have you sorted the grid positioning?

 you can use itween as well if you know the final destination point in advanced that's going to be your easiest way out.

bye,

 Jean