Author | Comment |
ChrisTIpher Probe Posted: 14 Dec 2009 22:05 GMT Total Posts: 8 | Is there any way for BASIC to know if there is a character on a given point (i.e. 3,4) and if so, how to make a variable change if it gets rid of it? I'm looking for something like the following: :If Output(P,Q,"+") :R-1->R I know that isn't correct syntax, but I think it's illustrative enough of what I want to have happen. If interested, you can see my game, a WIP, Here
|
tifreak8x Administrator
Posted: 15 Dec 2009 20:13 GMT Total Posts: 419 | ok, so you want the calc to do something once P and Q reach a certain point? Easy enough.
If P=A and Q=B:Then: Do whatever
A and B being the vars that store the values you need to trigger, and just makes sure both work at the same time to trigger it. If this is not what you need, please be more specific?
--- Bringing you Pokemon, for your calculator. |
ChrisTIpher Probe Posted: 15 Dec 2009 21:43 GMT Total Posts: 8 | OK, here's what I'm doing. I am making a game where you put plus signs on the screen while avoiding an asterisk. I didn't store the information where each plus mark has been put because there can be too many of them on the screen at once. And to make an plus sign appear, you simply use the d-pad and one appears automatically. The things I need to do are this: #1 - If there is already a plus sign where the cursor has moved, do not add 1 to R (R being the score) #2 - If the asterisk moves to a place where there is a plus sign, subtract 1 to R (The asterisk already deletes the + sign.) |
tifreak8x Administrator
Posted: 16 Dec 2009 07:47 GMT Total Posts: 419 | Seems like you would be better off using Strings to detect them. You can use http://tifreakware.net/tutorials/83p/b/tifw/les8.htm to learn how to do that.
--- Bringing you Pokemon, for your calculator. |
ChrisTIpher Probe Posted: 16 Dec 2009 11:52 GMT Total Posts: 8 | If I went that route, it would seem like I would need to redraw the string with every touch of the D-Pad. Is there a way to do that? |