TGC Codebase Backup



Spinning Skinny Rectangle by Lost Kid

4th Mar 2005 17:54
Summary

How To Make A Skinny Spinning Rectangle



Description

How To Make A Skinny Spinning Rectangle, Texture It And Color The BackDrop
The Picture Makes The Rectangle Look Fatter Than It Really Is, Sorry



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    `Created By LostKid

`This Is How We Hide The Mouse
Hide Mouse

`This Is The Famous Sync Command! :)
Sync On:Sync Rate 50

`This Is How We Make Our 3D Object:
Make Object Box 1,50,5,5

`This Is You Load Your Image(Change To Any Image You Want)
`Another Thing To Note, You Have To Save The Code In The
`Same Folder As The Image
Load Image "Green Day.bmp",1

`This Is How You Texture Your Object
`You Have To Make Sure You Put The
`Object Number First, Image Number Second
Texture Object 1,1

`This Is How I Colored The Back Ground Black
`The Rgb Stands For Red Green Blue, Play Around With This
Color BackDrop Rgb (0,0,0)

`Are Main Loop
Do
`These Two Codes Is How The Object Spins
`If You Delete Either One Of These Commands
`The Object Will Spin Different(Experiment!)
XRotate Object 1,Object Angle X(1)-1.0
YRotate Object 1,Object Angle Y(1)+1.0

`Heres Where We Refresh The Sync Command
Sync

`This Is The Loop Command Of The Main Loop
Loop