mining game question

how do I make a terrain that's mineable? e.g move down and the terrain disappears.

Comments

  • NovicaStudioNovicaStudio Member Posts: 174
    Let's say you have your actor that is the miner. Have a rule inside the terrain actor saying - If actor overlaps or collides with 'miner,' then Destroy the actor.
  • tutensteintutenstein Member Posts: 3
    I understand all that. My idea at the moment is to have my terrain actor (a 50x50 square) spawn in predetermined locations so that I can destroy each terrain square individually. is there some way to do this?
  • BoomshackBarryBoomshackBarry Member Posts: 712
    You could use a table to prepare the location of each terrain square, and then spawn based on the table values, or you could place the terrain squares from the scene editor itself. However they are spawned or placed you can still use the same collision rules that @NovicaStudio mentioned to destroy them.
  • tutensteintutenstein Member Posts: 3
    is there a way to restrict the terrain actor to destroying itself only when the miner is moving down?
  • BoomshackBarryBoomshackBarry Member Posts: 712
    edited May 2013
    is there a way to restrict the terrain actor to destroying itself only when the miner is moving down?
    You can read the actor's linear velocity, if it's <0 then the miner is moving downwards. You can toggle a game attribute when the actor is moving down, and then only destroy the terrain when that attribute is on.
Sign In or Register to comment.