Game Development Reference
In-Depth Information
if(invinciBagel.issKey()) processing structures, which are shown below, as
well as in Figure 13-17 :
if(invinciBagel. iswKey() ) {
spriteFrame. setImage (imageStates. get(5) );
}
if(invinciBagel. issKey() ) {
spriteFrame. setImage (imageStates. get(8) );
}
Figure 13-17 . Add if() statements at the bottom of the method for .iswKey() and issKey for Jump and Evade animation
Now we have implemented imageStates(0), imageStates(1), imageStates(2), im-
ageStates(4), imageStates(5), imageStates(6), and imageStates(8) in our game event
 
 
Search WWH ::




Custom Search