Hi ,
I have a 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 I have an error int this line
SetCollisionsPRO( TYPE_PLAYER, TYPE_CASTLE, ELLIP_2_POLY, RESP_SLIDE, DYN_NO_RESP)
Inregular line of brackets...
But I don't have any error about brackets in my code!!!
All my Brackets opens and close correct.
What is happend.
I cant compile
Could you help me?