Can Somebody Fix this?
Sync On
Sync Rate 30
Autocam Off
Hide Mouse
`/\/\/\/\/Objects\/\/\/\/\
`Sphere
Make Object Sphere 1,5 : Position Object 1,10,0,50
`Katamari
Load Object "katamari_boo.x",2 : Position Object 2,10,0,10
`Items
For cereal = 3 to 7
Make object cube cereal,5
Position Object cereal,Rnd(50),0,Rnd(50)
Next x
`Matrix
Make matrix 1,1000,1000,50,50
Load image "grass.bmp",1
Prepare matrix texture 1,1,1,1
Fill matrix 1,0,1
Randomize Matrix 1,20
`***************************** Main Loop ********************************
Do
`/\/\/\/\/Collision\/\/\/\/\
Set Object Collision On 2
Set Object Collision On 3
Set Object Collision On 4
Set Object Collision On 5
Set Object Collision On 6
Set Object Collision On 7
Set Object Collision to Polygons 2
Set Object Collision to Polygons 3
Set Object Collision to Polygons 4
Set Object Collision to Polygons 5
Set Object Collision to Polygons 6
Set Object Collision to Polygons 7
If Object Collision(2,3)>0
Glue Object to Limb 3,2,1
Endif
If Object Collision(2,4)>0
Glue Object to Limb 4,2,2
Endif
If Object Collision(2,5)>0
Glue Object to Limb 5,2,3
Endif
If Object Collision(2,6)>0
Glue Object to Limb 6,2,4
Endif
If Object Collision(2,7)>0
Glue Object to Limb 7,2,5
Endif
`/\/\/\/\/Katamari Codes\/\/\/\/\
`Stats
kangX# = Object Angle X(2)
kangY# = Object Angle Y(2)
kangZ# = Object Angle Z(2)
`Restrictions
If posX#<5.0 then posX#=5.0
If posZ#<5.0 then posZ#=5.0
If posX#>995.0 then posX#=995.0
If posZ#>995.0 then posZ#=995.0
`Connecting Objects
`Set Object to Object Orientation 1,2
`Set Object to Camera Orientation 1
`Items
c3posX# = Object Position X(3)
c3posZ# = Object Position Z(3)
c3posY# = Get Ground Height(1,c3posX#,c3posZ#)
c4posX# = Object Position X(4)
c4posZ# = Object Position Z(4)
c4posY# = Get Ground Height(1,c4posX#,c4posZ#)
c5posX# = Object Position X(5)
c5posZ# = Object Position Z(5)
c5posY# = Get Ground Height(1,c5posX#,c5posZ#)
c6posX# = Object Position X(6)
c6posZ# = Object Position Z(6)
c6posY# = Get Ground Height(1,c6posX#,c6posZ#)
c7posX# = Object Position X(7)
c7posZ# = Object Position Z(7)
c7posY# = Get Ground Height(1,c7posX#,c7posZ#)
Position Object 3,c3posX#,c3posY#+2.5,c3posZ#
Position Object 4,c4posX#,c4posY#+2.5,c4posZ#
Position Object 5,c5posX#,c5posY#+2.5,c5posZ#
Position Object 6,c6posX#,c6posY#+2.5,c6posZ#
Position Object 7,c7posX#,c7posY#+2.5,c7posZ#
`/\/\/\/\/Movement With Keys\/\/\/\/\
`Forward with the W key
If Keystate(17)=1
Xrotate Object 2,Wrapvalue(kangX#+15)
Move Object 1,2
Endif
If Keystate(31)=1
Xrotate Object 2,Wrapvalue(kangX#-15)
Move Object 1,-2
Endif
`/\/\/\/\/Mouse Stuff\/\/\/\/\
`Left Rotate
If MousemoveX() < -10
Yrotate Object 2,Wrapvalue(kangY#-4)
Yrotate Object 1,Wrapvalue(angY#-4)
Endif
`Right Rotate
If MousemoveX() > 10
Yrotate Object 2,Wrapvalue(kangY#+4)
Yrotate Object 1,Wrapvalue(angY#+4)
Endif
`/\/\/\/\/Camera Stuff\/\/\/\/\
`Main Objects Variables
posX# = Object Position X(1)
posZ# = Object Position Z(1)
posY# = Get Ground Height(1,posX#,posZ#)
angX# = Object Angle X(1)
angY# = Object Angle Y(1)
angZ# = Object Angle Z(1)
Position Object 1,posX#,posY#+5,posZ#
Position Object 2,posX#,posY#+5,posZ#
`Camera Variables
CamposZ# = Newzvalue(posZ#,Wrapvalue(angY#-180),35)
CamposX# = Newxvalue(posX#,Wrapvalue(angY#-180),35)
CamposY# = Get Ground Height(1,posX#,posZ#)
`Positioning
Position camera CamposX#,CamposY#+35,CamposZ#
`Camera Attention
Point camera posX#,posY#,posZ#
`Refresher
Sync
Loop
`***************************** End of Loop *********************************
Enemy Lasagna