Better collision detection and a keyboard question
Neil T
Member Posts: 25
Hi all
I've pretty much finished my first game this weekend, a sideways shoot'em up endless scroller - 'space' bar takes the main character up, and he drops if 'space' is up by using a move down when space not pressed function. I'm not using gravity
All's well with this, until I get the character to fly upwards into a powerup box using space, whereby the main character graphic changes to show the new power up (i.e. character with gun). If space is held down whilst the character hits the power up an changes to the new image with the gun, the fact that space is held down isn't being instantly picked up by the game, resulting in a brief drop due to the move down if space is not pressed function, which if there are enemies around to colide with causes a loss of life. Any ideas how I can get round this?
Finally sprite collision - I'm using the standard collision attribute in Gamesalad, and tried it as both rectangle and circle, but due to the main sprite having big ears poking upwards a fair way off of his main sprite body its not working well, can anyone point me in the right direction for better sprite collision?
thanks
I've pretty much finished my first game this weekend, a sideways shoot'em up endless scroller - 'space' bar takes the main character up, and he drops if 'space' is up by using a move down when space not pressed function. I'm not using gravity
All's well with this, until I get the character to fly upwards into a powerup box using space, whereby the main character graphic changes to show the new power up (i.e. character with gun). If space is held down whilst the character hits the power up an changes to the new image with the gun, the fact that space is held down isn't being instantly picked up by the game, resulting in a brief drop due to the move down if space is not pressed function, which if there are enemies around to colide with causes a loss of life. Any ideas how I can get round this?
Finally sprite collision - I'm using the standard collision attribute in Gamesalad, and tried it as both rectangle and circle, but due to the main sprite having big ears poking upwards a fair way off of his main sprite body its not working well, can anyone point me in the right direction for better sprite collision?
thanks
Comments
You'll need to post your rules so we can see how you have this set up.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Is there a better way to allow for this?
Is it possible for you to post a link to download your project file (please .zip it first) or send me the link via private message?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I'm going to build a very basic level using the move up command this eve and see if it works without all the other rules and attributes.
I'll keep you posted
thanks
Neil
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User