Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / create bullets from object

Author
Message
tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 6th Nov 2011 00:00
Hey guys,

So i would like to now how i can make spheres to get created when you hit space bar at an object position. Like galaga if you have ever played it and how it had bullets fire out of the front of your ship.

So thats what im looking for.

All help is appreciated!

-Tokyomage

.....the feel of solitude hurts inside....
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 6th Nov 2011 01:07
Well, without "giving you the codez", you might want to look into the following functions:

spacekey
make object sphere
(or clone object / instance object if you have a source mesh stashed away somewhere)
position object
object position x, y, z
.


"Why do programmers get Halloween and Christmas mixed up?"
Darkzombies
13
Years of Service
User Offline
Joined: 25th Dec 2010
Location: In multiple tabs, most likely youtube.
Posted: 6th Nov 2011 01:12 Edited at: 6th Nov 2011 01:13
This should work.



EDIT: Oh you meant 3D? Well rudolpho beat me anyways.

tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 6th Nov 2011 14:37
Yeah, i probably should have been a little more "descriptive" about this .

I am basically wanting a 3d lookalike of galagas shooting system.

@Rudolpho
Quote: "Well, without "giving you the codez", you might want to look into the following functions:

spacekey
make object sphere (or clone object / instance object if you have a source mesh stashed away somewhere)
position object
object position x, y, z."




There you go

@Darkzombies
Quote: "This should work.

(+ Code Snippet)

EDIT: Oh you meant 3D? Well rudolpho beat me anyways."


Again i should have been more descriptive about this manner, but i was looking for a 3d version of galagas shooting system.
But thanks again for your effort anyways!

-Tokyomage

.....the feel of solitude hurts inside....
tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 7th Nov 2011 20:59
Anybody?

.....the feel of solitude hurts inside....
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 8th Nov 2011 00:08
Here is TDK's 2D shooting tutorial. I know you're after 3D shooting but a part of programming is learning how to adapt concepts to what you want.

chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 8th Nov 2011 12:51
Hi there.
Some time ago I made this example that do what you need. I hope it can help.




Cheers.

I'm not a grumpy grandpa
tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 16th Nov 2011 00:33
Hey, thanks but its somewhat hard to understand. Any advice on it?
And thanks by the way

-Tokyomage

.....the feel of solitude hurts inside....

Login to post a reply

Server time is: 2024-11-23 23:54:41
Your offset time is: 2024-11-23 23:54:41