View Single Post
Old 10-2-2012, 10:07 PM   #6
qqwref
stepmania archaeologist
Retired StaffFFR Simfile AuthorFFR Veteran
 
qqwref's Avatar
 
Join Date: Aug 2005
Age: 34
Posts: 4,090
Default Re: First attempt at making a game

Quote:
Originally Posted by Guest15937 View Post
Haha, the lone bullet is there so my spawn method knows what a bullet looks like. If it's not there, none of the bullets appear, since the bullets are actually just images (to avoid lag). I couldn't really find a way around it, so I just stuck it in the top left where it would do the least damage.
Why not put it just outside the game screen?

Quote:
Originally Posted by Guest15937 View Post
And as far as diagonal movement goes, the slant has always been there, but it wasn't something I paid much attention to. I could fix it with a few AND conditionals and 45 degree angles. Don't have the time to fix anything tonight though :P
I'm not sure how you're doing the movement, but one way to make sure the 45-degree angles work properly is to keep track of a change-in-x and change-in-y variable. They both start at zero, if the up button is pressed you increase the change in y by 1, etc. So for instance if I hold up and right then the change in both x and y is 1, and the movement is automatically a 45 degree angle. Also, holding left and right will make you do nothing :)

edit: OH GOD LEVEL 7 LOL
__________________
Best AAA: Policy In The Sky [Oni] (81)
Best SDG: PANTS (86)
Best FC: Future Invasion (93)

Last edited by qqwref; 10-2-2012 at 10:09 PM..
qqwref is offline   Reply With Quote