Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Lingo code for arrow up etc. ( doesent work in this case...)

2 views
Skip to first unread message

Starbuck

unread,
Jul 25, 2002, 8:16:42 AM7/25/02
to
Hello Manoj, Thanx!

But it doesent work! i put the code in this email so maybe you can see the
problem...

Regards,
Starbuck

case the keyPressed of

-- change the position of the camera


"124"
sprite(1).camera.translate(-0.5, 0, 0)
"123"
sprite(1).camera.translate(0.5, 0, 0)
"g"
sprite(1).camera.translate(0, -0.5, 0)
"h"
sprite(1).camera.translate(0, 0.5, 0)
"126"
sprite(1).camera.translate(0, 0, -1)
"125"
sprite(1).camera.translate(0, 0, 1)


end case

Anderson

unread,
Jul 25, 2002, 8:49:06 AM7/25/02
to
On EnterFrame
if keyPressed(124) then
sprite(1).camera.translate(-0.5, 0, 0)
end if
if keyPressed(123) then
sprite(1).camera.translate(0.5, 0, 0)
end if
if keyPressed(g) then -- not sure about the 'g'
sprite(1).camera.translate(0, -0.5, 0)
end if
if keyPressed(h) then -- not sure about the 'h'
sprite(1).camera.translate(0, 0.5, 0)
end if
if keyPressed(126) then
sprite(1).camera.translate(0, 0, -1)
end if
if keyPressed(125) then
sprite(1).camera.translate(0, 0, 1)
end if
end


SjH

Richard van Tol

unread,
Jul 25, 2002, 8:52:18 AM7/25/02
to
Hi,

your code should look like something like this:

case (the keyPressed) of
124: sprite(1).camera.translate(-0.5, 0, 0)
125:sprite(1).camera.translate(0.5, 0, 0)
end case

so no " " brackets?


Richard

Starbuck <da...@tmade.nl> schreef in berichtnieuws
ahoq6r$ke3$1...@forums.macromedia.com...

Richard van Tol

unread,
Jul 25, 2002, 8:52:18 AM7/25/02
to
Hi,

your code should look like something like this:

case (the keyPressed) of
124: sprite(1).camera.translate(-0.5, 0, 0)
125:sprite(1).camera.translate(0.5, 0, 0)
end case

so no " " brackets?


Richard

Starbuck <da...@tmade.nl> schreef in berichtnieuws
ahoq6r$ke3$1...@forums.macromedia.com...

0 new messages