Working on my first game "space invaders" Question
by Johnny Sprada · in Torque Game Builder · 09/06/2006 (2:26 pm) · 2 replies
Hi all! I chose to make a space invaders clone for my first project. I am having trouble figuring out how to make my player fire a projectile.
I can't figure out how to get my player's vertical position is so I can spawn a projectile and launch it.
Is there a built in function, or do I have to create my own to retreive my player's position?
Any suggestions are appreciated.
Thank you!
Johnny
I can't figure out how to get my player's vertical position is so I can spawn a projectile and launch it.
Is there a built in function, or do I have to create my own to retreive my player's position?
Any suggestions are appreciated.
Thank you!
Johnny
About the author
#2
09/06/2006 (3:02 pm)
That looks great! OK, good call. I got too far ahead of myself. I didn't get to the scroller yet. I finished MyFishGAme, and half way through whack-a-mole, and I thought I would put my own game together. I will do the scroller, as it will solve my issue. thank you!
Torque Owner Alan James
Really Really Good Things Studio
Have you gone through the TDN shooter tutorial?
tdn.garagegames.com/wiki/TGB/BasicTutorial1
Take a look at it if you haven't, it should get up up and running on a scrolling shooter pretty quick. I used it as base for a vertical scroller (just changed the x and y coordinates out). Here's after about two hours of work, including going through the tutorial step by step:
Just dropped in new sprite models and a different scrolling background. Nothing spectacular, but a start.
- Alan