Bullets

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
4Clark
Posts: 5
Joined: Fri Feb 25, 2011 9:14 pm
Location: UCMST, MI

Bullets

Post by 4Clark »

I need to have a bullet appear to fire from a gun and travel along a ray. I am out of my league with doing it myself. Please help!
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

well is your bullet a mesh or just a line/particle?
for a mesh or particle just spawn a node(either MeshNode or Billboardnode) and add a flystraight animator or do the movement yourself.
for a line you could use my beamscenenode.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

Look at the demo. It has shooting code.
"Whoops..."
4Clark
Posts: 5
Joined: Fri Feb 25, 2011 9:14 pm
Location: UCMST, MI

Post by 4Clark »

My partner and I haven't done much for it so whichever way u recommend is what we'll do. All I ask is that u explain it and send code. Also what is
beamscenenode?
And I couldn't find the right tutorial.

Sorry if I ask any stupid questions, I'm a noob![/quote]
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

randomMesh wrote:Look at the demo. It has shooting code.
4Clark wrote:All I ask is that u explain it and send code.
Well, opening the source file, reading and understand it is YOUR part.
4Clark wrote:Also what is beamscenenode?
There actually are more than one beam nodes floating around. Just try the mighty search function.
"Whoops..."
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

4Clark wrote: All I ask is that u explain it and send code.
If you're actually serious about writing a game and programming in general, you don't just go out and ask for other people to write your code ;)
4Clark
Posts: 5
Joined: Fri Feb 25, 2011 9:14 pm
Location: UCMST, MI

Post by 4Clark »

I didn't mean for it to come out that way. We are almost done with our game. But I have no clue as how to make a gun shoot. I want is a a link or the concept, we can do the rest as long as it's not to advanced
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

your game is almost done but you can't figure out how to create a shooting gun?? seriously?
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Post Reply