Changing the character veiw...With Scripting , and without scripting, screws up

Started by Cytair, Sat 28/06/2003 09:06:47

Previous topic - Next topic

Cytair

This is the script for my room so far...
// room script file

function hotspot2_a() {
 // script for hotspot2: Player stands on hotspot
     SetCharacterView (GARY, 5) ;
     MoveCharacterBlocking(GARY , 268,207,1) ;
     MoveCharacterBlocking(GARY , 343,252,1) ;
     ReleaseCharacterView (GARY) ;
}

function hotspot3_a() {
 // script for hotspot3: Player stands on hotspot
     SetCharacterView (GARY,6) ;
     MoveCharacterBlocking (GARY,270,211,1) ;
     MoveCharacterBlocking   (GARY,182,240,1) ;
     ReleaseCharacterView (GARY) ;
}
Its supposed to make my Character look like he is jumping, and it works for going left...But for going right-no matter what i do-It shows him as a coffee cup until  (MoveCharacterBlocking (GARY,270,211,1) then it changes him to what its supposed to be.  Whats wrong?

Pumaman

SetCharacterView works with AnimateCharacter - if you want to use MoveCharacter, you'll need to use two ChangeCharacterView commands rather than a Set and Release.

Cytair

Thanks, I'll try that and see what happens

Cytair

I tried it as ChangeCharacterVeiw, but it still showed him as the coffee cup half way through the jump...

Pumaman

Do views 5 and 6 have all the appropriate loops set up for the different directions? Do they each have 4 loops?

Cytair

I really only wanted it to hsow one thing..Lazy i guess, but no i need to make it look better and do all loops for left and right.  Does there have to be atleast 4?

Cytair

Ok >:( I did four Sprites for the jumping thing and made them a veiw like my character.  They were all drawn going right, but I changed them from normal to flipped under left.  Now, instead of playing them all when going right it plays1-2 over and over and going left, it doese the same thing but dosn't flip them like it should >:( Help me Please..

Pumaman

The view has to have 4 loops in order for it to be recognised as a walking view. However, you can leave the other 3 loops empty if the character doesn't go in that direction as part of the animation.

Remember that walking animations don't use the first frame in the loop (it's the standing frame), so you might want to add it again to the end of the loop to get it to play.

Cytair

Thanks again, Ill try that. 8)

SMF spam blocked by CleanTalk