Shooting help

Talk about making games.

Shooting help

Postby Game A Gogo » Sun Aug 07, 2005 12:53 am

I need to know how to change the shooting direction by the position hes pointing (Jump and run game) Please
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby ntware » Sun Aug 07, 2005 3:14 am

helow my friend! Hmm, if you are trying to make a game similar do abuse (where the actor can look to any direction and fire to the direction that he's looking), try to understand the demo of this game on the site. I nice trick that u can do is put two actors, and link them by the "pattern" function. one actor will be the "body" of the hero, wich will move to right/left/jump. The other actor will be his head, wich can look to anyu direction. To make the head looking, try to understand the asteroids demo on the site to see how u can rotate your actor and change the fire direction (you will use some angle functions. If you don't understand how to use that on the demo, ask me again). With these two actors linked and programmed, you will be able to walk left/right/jump and look to all directions and fire to that direction.


See you latter my friend! :wink:


Thiago R. Alves
User avatar
ntware
 
Posts: 14
Joined: Fri Jul 29, 2005 4:51 pm
Score: 0 Give a positive score

Postby Game A Gogo » Sun Aug 07, 2005 9:41 pm

Tanks but thats not it, it can only shoot two ways: left, Right.

Like is facing right and you press alt, he shoot to the right
and if hes facing left and you press alt, he shoots to the left

Get it :?
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby willg101 » Mon Aug 08, 2005 12:26 am

Is this what you want?
http://wish-products.95mb.com/data.zip

Left-Look Left
Right-Look right
Space-Shoot

Sorry that this demo is soo bad--I just threw it together quick.
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby brutalDeluxe » Wed Aug 10, 2005 10:04 pm

Good demo.
User avatar
brutalDeluxe
 
Posts: 43
Joined: Sun Dec 12, 2004 7:43 am
Score: 0 Give a positive score

Postby willg101 » Thu Aug 11, 2005 3:27 pm

Thanks :!:
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest