Constrain attribute vs. unlocking an actor and accessing other actors through layers

LooseMooseLooseMoose Member Posts: 224
edited October 2012 in Working with GS (Mac)
I want to jump on an enemy to kill it.

Should I constrain player bottom and enemy bottom to their y positions. So player dies on collision when playerbottom < enemybottom

OR

Should I unlock the player then go through the layers and make player die on collision when self position y < enemy self position y


Which option is the best for optimization? Thanks

Answers

  • CluvCluv Member Posts: 229
    Not to hijack the thread, but off-hand do you know if you spawn an actor, can you unlock it as you spawn it and set it to a particular layer?
  • CluvCluv Member Posts: 229
    @uptimistik: cool, I was just looking and saw there wasn't an "unlock" boolean. Somehow I felt there was, deep down inside. Oh well. Thanks for responding.
Sign In or Register to comment.