I tried to do something similar but the problem is that it's not even registering. Before whenever I came into collision with the object the words printed on the screen just fine and when you walked away from collision it would disappear.
This is what I did
q1 = rnd (9) + 1
if object exist(128)
if q1= 1 and object collision (1,140)>0
set text size 30
center text 200,400, "6 -(5-3)+10 = ?"
center text 200,420, "A) 20"
center text 200,440, "B) 14"
Center text 200,460, "C) 7"
if inkey$()="b"
paste image 999,250,500
delete object 128
delete object 140
endif
endif
endif
if object exist (128)
if q1 = 2 and object collision (1,140)>0
center text 200,400, "6*3 - 3+4/16 = ?"
center text 200,420, "A) 20"
center text 200,440, "B) 12"
center text 200,460, "C) 11"
if inkey$()="a"
paste image 999,250,500
delete object 128
delete object 140
endif
endif
endif
if object exist (128)
if q1 = 3 and object collision (1,140)>0
center text 200,400, "4*3-(5+2) + 14 = ?"
center text 200,420, "A) 23"
center text 200,440, "B) 17"
center text 200,460, "C) 19"
if inkey$()="c"
paste image 999,250,500
delete object 128
delete object 140
endif
endif
endif
The problem is that the words dont even show up so I cant tell if it works or not. Will this even work what I'm doing?