Ok.
So i found this and it works just for this reason lol, never knew about it
CompareString
And i used it and found my error
For some reason, not known, thease two lines cancel each other out.
if All_Balloons[A].YPos>100 and GetPointerPressed() = 1 and All_Balloons[A].HitTest=1 and compare_1=0 or All_Balloons[A].YPos>100 and GetPointerPressed() = 1 and All_Balloons[A].HitTest=1 and compare_2=0
Collected=Collected-1
endif
if All_Balloons[A].YPos>100 and GetPointerPressed() = 1 and All_Balloons[A].HitTest=1 and compare_1=1 or All_Balloons[A].YPos>100 and GetPointerPressed() = 1 and All_Balloons[A].HitTest=1 and compare_2=1
Collected=Collected+1
endif
this is how I am using the compare function
compare_1=CompareString( FirstLevelColor, All_Balloons[A].SelectedColor_1,0,-1 )
compare_2=CompareString( SecondLevelColor, All_Balloons[A].SelectedColor_1,0,-1)
When i click on balloons not the color asked for it deletes collected, But when i click on the correct balloons it does nothing, but when i add a +2 it then adds so the bottom line does nothing for comparing against it unless i use your code and i am going to have to.
Here is the whole thing
compare_1=CompareString( FirstLevelColor, All_Balloons[A].SelectedColor_1,0,-1 )
compare_2=CompareString( SecondLevelColor, All_Balloons[A].SelectedColor_1,0,-1)
if All_Balloons[A].Frame=1 then All_Balloons[A].SelectedColor_1="Red"
if All_Balloons[A].Frame=5 then All_Balloons[A].SelectedColor_1="Green"
if All_Balloons[A].Frame=9 then All_Balloons[A].SelectedColor_1="Yellow"
if All_Balloons[A].Frame=13 then All_Balloons[A].SelectedColor_1="Blue"
if All_Balloons[A].Frame=17 then All_Balloons[A].SelectedColor_1="Purple"
if All_Balloons[A].Frame=21 then All_Balloons[A].SelectedColor_1="Black"
if All_Balloons[A].YPos>100 and GetPointerPressed() = 1 and All_Balloons[A].HitTest=1 and compare_1=0 or All_Balloons[A].YPos>100 and GetPointerPressed() = 1 and All_Balloons[A].HitTest=1 and compare_2=0
Collected=Collected-1
endif
if All_Balloons[A].YPos>100 and GetPointerPressed() = 1 and All_Balloons[A].HitTest=1 and compare_1=1 or All_Balloons[A].YPos>100 and GetPointerPressed() = 1 and All_Balloons[A].HitTest=1 and compare_2=1
Collected=Collected+1
endif