Pages: 1
Topic closed
HI i wonder if any of you out there would be able to help me
Bit of a problem as usual prob a simple one
Im creating a game where the sprite stays still if no keys are pressed and a animation sequence if the right/left key is pressed however it does not seem to like this code
// when right key not pressed then switch to static sprite
and the following code
// if right key is pressed then switch to particular sprites
// if left key is pressed then switch to particular sprites
Using the not(pressed Right) Or not(pressed Left) code doesnt seem to work
am I coding this wrong or is there a simpler method of doing this
I will upload what I have got so far asap and re-post the link
I appreicate any guidance or references
cheers
(I'm making a scrolling platforming game similar to a game called plok for the super nintendo difference being the main character is a cartoon skeleton boxer called Mike )
Offline
I found the problem and its pretty simple. According to the code once a key is press then Mike will change his costumes forever because the script to change his costume is in a forever block. Remove the forevers that contain the change costume scripts and you're done
Offline
Topic closed
Pages: 1