Search found 7 matches
- Wed Jul 05, 2023 8:52 pm
- Forum: Support and Development
- Topic: Deleting an Object from a Table
- Replies: 5
- Views: 1879
Re: Deleting an Object from a Table
Thanks it work fine know!!
- Wed Jul 05, 2023 8:30 pm
- Forum: Support and Development
- Topic: Deleting an Object from a Table
- Replies: 5
- Views: 1879
Re: Deleting an Object from a Table
Thanks for the tip on not creating a new image for each bullet but changing the for loop to not have pairs() didn't work. It is still like it was
before.
Here is the .love file, thanks for helping!
*I removed the attachment*
before.
Here is the .love file, thanks for helping!
*I removed the attachment*
- Wed Jul 05, 2023 7:03 pm
- Forum: Support and Development
- Topic: Deleting an Object from a Table
- Replies: 5
- Views: 1879
Deleting an Object from a Table
I'm making a game and I'm trying to make a bullet script and I have it delete it's self after it fly's a specific distance. Before I made it destroy its self it worked fine. After I added it it would work fine until the first bullet destroys its self. When that happens it destroys its self and all t...
- Fri Jun 30, 2023 6:12 pm
- Forum: Support and Development
- Topic: Rotating a weapon around the player.
- Replies: 3
- Views: 868
Re: Rotating a weapon around the player.
I asked ChatGPT 4 https://chat.openai.com/?model=text-davinci-002-render-sha and it gave me this: local love = _G.love function Weapon(_Id, Player, _Distance, Size) local Distance = _Distance + Player.Radius return { Id = _Id or 1, Distance = Distance, Player = Player, Size = Size, Draw = function (...
- Wed Jun 28, 2023 11:08 pm
- Forum: Support and Development
- Topic: Rotating a weapon around the player.
- Replies: 3
- Views: 868
Rotating a weapon around the player.
I'm trying to add a weapon to my game and I'm trying to get it to rotate around the player according to the mouse. I have tried the distance formula and that kinda got it working but not really. Can someone tell me how to do this? local love = _G.love function Weapon(Weapons, _Id, Player, _Distance)...
Re: Functions
Thank you for the help! It is now working. And I will put these posts in the right forum next time!
Functions
I need help with a function I'm writing it is suppose to draw a circle around the player relative to my mouse and when I try to make it a specific distance away from the player it is being weird. Please also note that I'm bad at spelling and some words in my code my be misspelled. local love = _G.lo...