Okay guys im just blanking out right now. Umm lets say that i want a diffrent lua script to load after pressing cross X what code would I use
if pad:cross() then---------------------------------------
end
okay and i could help you code the game
Okay guys im just blanking out right now. Umm lets say that i want a diffrent lua script to load after pressing cross X what code would I use
if pad:cross() then---------------------------------------
end
if pad:cross() then
screen:clear()
dofile ("script.lua")
end
-----------------------
where script.lua is the file that you want to load.
this should work
http://one.revver.com/watch/170516
http://one.revver.com/watch/167200
Please click the links above to watch my stick figure animations,
and please, if you have the time, click the ads at the end to earn me some money.
Nope
It stays on the same screen
if pad:cross() then
gamestate = "game"
end
end
function playGame()
screen:clear()
dofile("script.lua")
if pad:start() then
gamestate = "menu"
end
end
--this part is after the main loop
if gamestate == "game" then
playGame() end
http://one.revver.com/watch/170516
http://one.revver.com/watch/167200
Please click the links above to watch my stick figure animations,
and please, if you have the time, click the ads at the end to earn me some money.
hmm how is it a halo 3 game... halo 3 isnt out... do you know the weapons? vehicles? characters? environments?
The code is fine. The problem is your code logic.Originally Posted by RealRitzcracker
yes, i knew that my code worked because i use expressions like that all the time. It must be the way you have got your code written.
http://one.revver.com/watch/170516
http://one.revver.com/watch/167200
Please click the links above to watch my stick figure animations,
and please, if you have the time, click the ads at the end to earn me some money.
Ya I guess so but nothings working.
Im so confused
It is kind of difficult to see what you are doing wrong if we can't see what you are doing.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks