I have one strange problem in my code.
Rem ----- Variables -------------------------------------------------------------------------
global castle `Object
global castle_shadows `Object
global player `Object
Rem -----------------------------------------------------------------------------------------
Rem ----- Collision Variables ---------------------------------------------------------------
#Constant ELLIP_2_ELLIP=1
#Constant ELLIP_2_POLY=2
#Constant RESP_STICK=1
#Constant RESP_SLIDE=2
#Constant RESP_SLIDE_NO_SLOPES=3
#Constant RESP_SLIDE_NO_GRAV=4
#Constant RESP_SLIDE_NO_ACCEL=5
#Constant RESP_NONE=6
#Constant DYN_NO_RESP=1
#Constant DYN_RESP=2
#Constant DYN_RESP_NOTURN=3
Rem ----------------------------------
#Constant TYPE_CASTLE = 10 `Castle Collision Index
#Constant TYPE_PLAYER = 11 `Player Collision Index
Rem -----------------------------------------------------------------------------------------
Init_Display()
Setup_Collisions()
Load_Objects()
Do
Loop
Function Init_Display()
SET DISPLAY MODE 800, 600, 16
sync on : sync rate 60
set ambient light 100
set text font "Times",166 : set text size 16
EndFunction
Function Setup_Collisions()
StartCollisionPRO(xxx,xxx,xxx)
StartCollisionDebugPRO()
SetCollisionsPRO( TYPE_PLAYER, TYPE_CASTLE, ELLIP_2_POLY, RESP_SLIDE, DYN_NO_RESP)
Endfunction
Function Load_Objects()
load object "Castle.x",castle
EndFunction
And in line:
SetCollisionsPRO( TYPE_PLAYER, TYPE_CASTLE, ELLIP_2_POLY, RESP_SLIDE, DYN_NO_RESP)
I have an error:
Irregular number of brackets.
But my brackes are correct
I don't have loose brackets and all of my brackets opened and closed.
Look the code.
I have big problem , I can't compile
could you help me?