3

Click here to load reader

Example of bug fixed in game salad

Embed Size (px)

Citation preview

Page 1: Example of bug fixed in game salad

Example  of  bug  fixed  in  GameSalad    

       One  problem  we  encountered  was  an  issue  with  the  patrolling  guards.  Before  we  added  their  animations  they  were  working  fine  after  Sam  M  put  in  a  simple  rule  for  them  to  walk  back  and  forth  in  a  certain  pattern.        

       The  rule  that  worked  fine  before  we  added  the  animations.      Once  we  added  animations,  for  some  reason,  it  began  to  not  work  properly,  the  guards  were  either  not  animating  and  staying  in  one  position  as  they  moved,  or  they  would  animate  walking  to  either  the  right  or  the  left,  then  walk  backwards  on  the  way  back.    To  fix  this,  we  created  a  new  scene  and  created  a  new  actor  for  the  guard  and  we  started  from  scratch,  doing  each  part  slowly  and  one  at  a  time,  it  appeared  to  be  an  overlapping  of  rules  that  were  contradicting  each  other  that  was  causing  the    guard  to  not  work  properly.  Once  we  had  this  fixed,  we  copied  the  new  working  guard  into  the  game  and  re-­‐arranged  his  coordinates  to  make  him  walk  on  a  set  route  we  wanted  him  to.    The  next  part  of  the  problem  was  the  guard  was  not  following  the  correct  path  we  had  designated  him  walk  on,  we  are  not  entirely  sure  what  caused  this  

Page 2: Example of bug fixed in game salad

problem  (we  had  to  get  Nick  to  help  us,  as  we  were  genuinely  stuck),  eventually  we  figured  out  that  the  guard  was  trying  to  walk  to  far  and  after  figuring  out  the  guard’s  coordinates  just  before  it  walked  to  far,  we  set  a  rule  which  made  the  guard  turn  around  when  his  coordinates  were  equal  to  or  greater  than  a  certain  number.              

                               

Page 3: Example of bug fixed in game salad

The  new  rule  that  allowed  the  guard  to  move  in  the  desired  pattern  and  still  animate  correctly.    We  are  not  100%  sure  how  we  fixed  this  problem,  there  was  a  lot  of  trial  and  error,  guesswork,  and  experimenting  involved.  Once  we  had  it  fixed  however,  we  could  simply  copy  it  and  apply  it  to  the  other  guard,  and  use  the  same  method  for  figuring  out  where  we  wanted  them  to  stop  moving  one  way  and  turn  around.