Major lua help

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
Master Inuyasha
Posts: 13
Joined: Sun Nov 13, 2005 9:55 am

Major lua help

Post by Master Inuyasha »

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!
youresam
Posts: 87
Joined: Sun Nov 06, 2005 1:43 am

Post by youresam »

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....
Zenurb
Posts: 106
Joined: Fri Sep 30, 2005 8:33 am
Location: United Kingdom
Contact:

Post by Zenurb »

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)
Master Inuyasha
Posts: 13
Joined: Sun Nov 13, 2005 9:55 am

Post by Master Inuyasha »

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?
Zenurb
Posts: 106
Joined: Fri Sep 30, 2005 8:33 am
Location: United Kingdom
Contact:

Post by Zenurb »

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)
Master Inuyasha
Posts: 13
Joined: Sun Nov 13, 2005 9:55 am

Post by Master Inuyasha »

well, i learning, and i dont really care what you recommend, people have to start somewhere, am i right? Also, i know some javascript.
KawaGeo
Posts: 191
Joined: Sat Aug 27, 2005 6:52 am
Location: Calif Mountains

Post by KawaGeo »

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
Master Inuyasha
Posts: 13
Joined: Sun Nov 13, 2005 9:55 am

Post by Master Inuyasha »

thanks
Post Reply