Game Development Community

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

#1
09/06/2006 (2:59 pm)
John,

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:

www.reallyreallygoodthings.com/tgb/003-00007A.jpg
Just dropped in new sprite models and a different scrolling background. Nothing spectacular, but a start.

- Alan
#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!