| View previous topic :: View next topic |
| Author |
Message |
Master Inuyasha
Joined: 13 Nov 2005 Posts: 13
|
Posted: Sun Nov 13, 2005 10:03 am Post subject: Major lua help |
|
|
| I dont know if you guys are friends over at PSPU, but i have gone to them with questions, and they have yet to answer me. So, I hope that you guys can help me! Now, I need to know how to create a bullet system. I already made it so that no matter where the plane is, the bullet will always apear to the front. But i need it to travel across the screen. I am making a game, which i will make a new topic some time from now, but I need this first. Also, if anyone out there, think they are an excelent coder, and can program an a.i. or help, the bullet system, or you can just code really well pm me! |
|
| Back to top |
|
 |
youresam
Joined: 06 Nov 2005 Posts: 87
|
Posted: Mon Nov 14, 2005 12:11 am Post subject: |
|
|
use a for command for a set # of objects
oh, and if you mean multiple bullets at 1 time, I've actually been wondering that for a while.
I mean, how do you have X number of objects AND collision detection.... |
|
| Back to top |
|
 |
Zenurb
Joined: 30 Sep 2005 Posts: 106 Location: United Kingdom
|
Posted: Mon Nov 14, 2005 12:26 am Post subject: |
|
|
| youresam wrote: | use a for command for a set # of objects
oh, and if you mean multiple bullets at 1 time, I've actually been wondering that for a while.
I mean, how do you have X number of objects AND collision detection.... |
That's actually rather easy.
Keep the objects in an array or table, and have the collision tested every tick. _________________ Proud Dvorak User
US 1.5 PSP (Original) |
|
| Back to top |
|
 |
Master Inuyasha
Joined: 13 Nov 2005 Posts: 13
|
Posted: Mon Nov 14, 2005 12:42 am Post subject: |
|
|
what do you mean a command for a set number of objects?
What is a command, i dont recall reading that.
And a table, how is that done? |
|
| Back to top |
|
 |
Zenurb
Joined: 30 Sep 2005 Posts: 106 Location: United Kingdom
|
Posted: Mon Nov 14, 2005 12:55 am Post subject: |
|
|
| Master Inuyasha wrote: | what do you mean a command for a set number of objects?
What is a command, i dont recall reading that.
And a table, how is that done? |
Do you know any programming languages at all? I would not reccomend Lua to beginners. _________________ Proud Dvorak User
US 1.5 PSP (Original) |
|
| Back to top |
|
 |
Master Inuyasha
Joined: 13 Nov 2005 Posts: 13
|
Posted: Mon Nov 14, 2005 3:49 am Post subject: |
|
|
| well, i learning, and i dont really care what you recommend, people have to start somewhere, am i right? Also, i know some javascript. |
|
| Back to top |
|
 |
KawaGeo
Joined: 27 Aug 2005 Posts: 191 Location: Calif Mountains
|
Posted: Mon Nov 14, 2005 4:26 am Post subject: |
|
|
If you really want to learn Lua programming, may I suggest to visit lua.org and lua-users.org websites. They have a loads of materials free to public.
Happy learning. :) _________________ Geo Massar
Retired Engineer |
|
| Back to top |
|
 |
Master Inuyasha
Joined: 13 Nov 2005 Posts: 13
|
Posted: Mon Nov 14, 2005 8:31 am Post subject: |
|
|
| thanks |
|
| Back to top |
|
 |
|