forums

TNT Basic Forums > Game-In-60 Tutorials Q&A
Moving in Pong
< Last Thread     Next Thread >
Author
Thread        Post A Reply

02-16-2003 19:28

Posted by:
Simon

Click Here to Email Simon   Find more posts by Simon

What moves the bats in Pong? Everything works in it, but I can't get either of the bats to move. What moves them? (The mouse doesn't work)

02-16-2003 20:39

Posted by:
matteo

Location:
Venice, ITALY!

Click Here to Email matteo   Find more posts by matteo

That' s a good question =)

02-17-2003 06:53

Posted by:
eekaydee

Location:
CA, USA

Click Here to Email eekaydee   Find more posts by eekaydee

Doesn't the input window come up when you play?

02-17-2003 15:11

Posted by:
Simon

Click Here to Email Simon   Find more posts by Simon

The input window doesn't come up; it's supposed to come up right before I play but it doesn't. I don't think the code is wrong...

07-12-2003 00:47

Posted by:
appleide

Click Here to Email appleide   Find more posts by appleide

I don't think so, someone told me in the other forum that if you're using mac os x , it won't work since X doesn't support input sprockets , or maybe your input sprockets are outdated.

p.s my information isn't too reliable

07-13-2003 21:17

Posted by:
Mark Tully

Location:
TNT HQ, England

Click Here to Email Mark Tully   Find more posts by Mark Tully

Yes, the input commands used by pong don't currently work on OS X as they make use of input sprockets which never made it to OS X.

We hope to get around to implementing input on X soon.

Cheers,

Mark

10-28-2003 22:22

Posted by:
fjerkon

Location:
Sweden

Find more posts by fjerkon

try this code instead of the input sprocket code...

if pressed(126) ' up=up
player1y=player1y-15
else if pressed (125) 'down=down
player1y=player1y+15
end if

if pressed(91) ' pad 8=up
player2y=player2y-15
else if pressed (87) 'pad 5=down
player2y=player2y+15
end if


you'll have to delete these to get it working

(in the beginning of the code)
load input 128
edit input
activate input


(the original input)

'input=poll input (1) ' get player 1 input
'player1y=player1y+input/20
'if player1y<0 then player1y=0
'if player1y>430 then player1y=430

'input=poll input (2) ' get player 2 input
'player2y=player2y+input/20
'if player2y<0 then player2y=0
'if player2y>430 then player2y=430

and

deactivate input


Good luck!!


07-09-2006 18:35

Posted by:
wingedserpent

Location:
Fort Worth

Find more posts by wingedserpent

This remains an issue

Thanks for that keyboard workaround.

I just wanted to mention that as of today the problem still seems to exist in OS X.

This is the only issue I've found. TNT Basic is great otherwise.

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.