forums

TNT Basic Forums > Beyond Basic
joking: TNT Crazy functions ;-)
< Last Thread     Next Thread >
Author
Thread        Post A Reply

04-08-2003 12:34

Posted by:
matteo

Location:
Venice, ITALY!

Click Here to Email matteo   Find more posts by matteo

here is how Mark Tully spends his time coding :-)
A list of crazy funcions that nobody knew TNT had and nobody ever used...

"count images": counts images in a bank... hum... (?)

FX matrix: hmm, this misterious function looks cool but I didn' t manage to use it... somebody?

"Image collision type": tells if the image uses exact collisioons or not... hu...hum... (??)

"Regs( X,Y,I,R0-R9,RA-RZ): ok, I actually don' t know if it' s useful (dont use moan) but it' s name is great!

"text descent": Tells you how much pixels the bottom/lower part of a letter such as p or y or q goes down the imaginary line where you wrote it. Wow!

"Nth resource id".... well...


And finally the gem:

"wrap": description: takes a value and "wraps" it between two other values...
If you look at the example after some time you find ther is some hidden sense in that (very hidden), but really no way to use it...
Oh, just now I found a way to use it... can you guess it?

Cheers

Matteo

04-09-2003 21:49

Posted by:
ERaZer

Click Here to Email ERaZer   Find more posts by ERaZer

Hey, man! I use several of those!

And FX Matrix is cool!

05-19-2003 22:06

Posted by:
Jason Anderson

Location:
Doylestown, PA

Click Here to Email Jason Anderson   Find more posts by Jason Anderson

Actually, now that I know it's there, Wrap looks pretty useful.

05-20-2003 19:51

Posted by:
Danlab games

Click Here to Email Danlab games   Find more posts by Danlab games

im always using WRAP
and MOAN.. like moan register very usefull

05-20-2003 20:40

Posted by:
matteo

Location:
Venice, ITALY!

Click Here to Email matteo   Find more posts by matteo

>I always use wrap
=0

hmmm.. strange people ;-P

I see wrap usefull if you move the mouse and want a sprite to be bounded between two x (or y ) coordinates but to go right when you move the mouse right and left on the left and this sort of stuff, but not much other....

Moan regs: ok, I understood these, I' ll never use them but they may have some point...

05-21-2003 10:44

Posted by:
Danlab games

Click Here to Email Danlab games   Find more posts by Danlab games

this small fonction are very helpful

i prefer writing this

a=wrap(a+1,1 to 5)

and not

a=a+1
if a=6 then a=1

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.