Fireball carbine[HELP]
- HugoBDesigner
- Posts: 2189
- Joined: 19 Sep 2012, 02:23
- Contact:
Add to game_load:
to game_update:
to game_keypressed:
to game_keyreleased:
to game_joystickpressed:
to game_joystickreleased:
This may work, but I don't guarantee 100%. Also, welcome to the forums! We hope you stay in!
Code: Select all
shootingfire = false
shootingtimer = 0
shootingtimerlimit = 1
shootingplayers = {}
for i = 1, players do
table.insert(shootingplayers, false)
end
Code: Select all
if shootingfire then
while shootingtimer < shootingtimerlimit do
shootingtimer = shootingtimer + dt
end
if shootingtimer >= shootingtimerlimit then
for i = 1, players do
if shootingplayers[i] == true then
objects["player"][1]:fire()
end
end
shootingtimer = 0
end
else
shootingtimer = 0
end
Code: Select all
for i = 1, players do
if key == controls[i]["run"][1] then
shootingfire = true
shootingplayers[i] = true
end
end
Code: Select all
for i = 1, players do
if key == controls[i]["run"][1] then
shootingfire = false
shootingplayers[i] = false
end
end
Code: Select all
for i = 1, players do
if not noupdate and objects["player"][i].controlsenabled and not objects["player"][i].vine then
local a = controls[i]["run"]
if a[1] == "joy" and joystick == a[2] and a[3] == "but" and button == a[4] then
shootingfire = true
shootingplayers[i] = true
end
end
end
Code: Select all
for i = 1, players do
if not noupdate and objects["player"][i].controlsenabled and not objects["player"][i].vine then
local a = controls[i]["run"]
if a[1] == "joy" and joystick == a[2] and a[3] == "but" and button == a[4] then
shootingfire = false
shootingplayers[i] = false
end
end
end
- Mari0Maker
- Posts: 1348
- Joined: 07 Apr 2012, 17:10
- Contact:
If you are using Notepad++ (and this may work on others), press CTRL + F, and type in what your looking for, and hit search.Mama Mia wrote:I'm sorry and I am a total noob to this, so where are the Game_ files?
- Mari0Maker
- Posts: 1348
- Joined: 07 Apr 2012, 17:10
- Contact:
If you are talking about which .lua file it is, it is game.lua.Mama Mia wrote:I tryed that. where is the thing he is talking about? sorry.
Mari0's source.
You'd need LOVE2D to open it and use it, if you don't have it already.
Also, what Mari0Maker said. game.lua.
You'd need LOVE2D to open it and use it, if you don't have it already.
Also, what Mari0Maker said. game.lua.
kinda weird when i made the mod...