can anyone help me out here plz? thanksZitat:
Zitat von bronxbomber92
Printable View
can anyone help me out here plz? thanksZitat:
Zitat von bronxbomber92
Be alittle more precise and i think i can help :icon_wink .Zitat:
Zitat von natan333
I dont really understand at the moment? :(
post the codeZitat:
Zitat von bronxbomber92
ok here it is
btw there isnt any bugs in it now, i just need to know wat i asked before...Code:green = Color.new(0, 255, 0)
black = Color.new(0, 0, 0)
red = Color.new(255, 0, 0)
blue = Color.new(0, 0, 255)
white = Color.new(255, 255, 255)
-- Questions 1
questionOne = "Who hit the most homeruns ever?"
--answers 1
answerOne = "down = Babe Ruth"
answerTwo = "right = Hank Aaron"
answerThree = "left = Barry Bond"
answerFour = "up = Sammy Sosa"
--****Main Loop****
while true do
screen:clear()
pad = Controls.read()
screen:print(80, 100, questionOne, blue)
screen:print(150, 200, answerOne, white)
screen:print(150, 215, answerTwo, white)
screen:print(150, 230, answerThree, white)
screen:print(150, 245, answerFour, white)
if pad:down() then
screen:print(150, 110, "sorry, incorrect.", red)
end
if pad:right() then
screen:print(150, 110, "Your Correct!", green)
end
if pad:left() then
screen:print(150, 110, "sorry, incorrect.", red)
end
if pad:up() then
screen:print(150, 110, "sorry, incorrect.", red)
end
screen.flip()
screen.waitVblankStart()
end
I mean If i put this codeZitat:
Zitat von c5cha7
the hello will only move right if a press the circle button becuaseCode:letterPos = {}
letterPosx = 200
letterPosy = 100
while true do
blue=Color.new(0,200,350)
screen:clear()
pad = Controls.read()
if pad:circle() then letterPosx = letterPosx + 2 end
screen:print(letterPosx, letterPosy, "HELLO", blue)
if pad:select() then
break
end
screen.flip()
screen.waitVblankStart()
end
is included.Code:if pad:circle() then letterPosx = letterPosx + 2 end
my question is: is there a code to replease theto make it move right with out pressing any button ?Code:if pad:circle() then letterPosx = letterPosx + 2 end
Natan333 -
Do you mean that you just want the "HELLO" to move by itself? If so, then you just replace "pad:circle()" with "true". So the code would look like this.
Code:
letterPos = {}
letterPosx = 200
letterPosy = 100
while true do
blue = Color.new(0,200,350)
screen:clear()
pad = Controls.read()
if true then letterPosx = letterPosx + 2 end
screen:print(letterPosx, letterPosy, "HELLO", blue)
if pad:select() then
break
end
screen.flip()
screen.waitVblankStart()
end
Argh...Zitat:
Zitat von Jeffery
You beat me to it :( .
but yea, i think he means that?
unless you mean if you press select it
will keep moving even is select isn't holded?
Thanks Jeffery , thats what i needed to know, If true is to move then false is to stop right ?
like. if its moving, i plan to make it stop after 5 seconds, to do it i put something like
?Code:screen.waitVblankStart(50) False
youd say something like:
-- top of the script
movehello = true
if movehello == true then
letterPosx = letterPosx + 2 end
screen:print(letterPosx, letterPosy, "HELLO", blue)
screen.waitVblankstart(50 )
movehello = false
end
PLZ help! all i want is to know how to move on to a new question if the question before that was answered correct?!?!?! can some1 plz help me?????Zitat:
Zitat von bronxbomber92