Jump to content



Photo
- - - - -

Getting the text from the screen

fx-9750gii game locate text

  • Please log in to reply
3 replies to this topic

#1 heyyy

heyyy

    Newbie

  • Members
  • Pip
  • 1 posts

  • Calculators:
    fx-9750gii

Posted 16 November 2017 - 08:50 PM

Hey there! I made a small game for my casio fx-9750gii where i use "Locate" for getting text displayed on the screen. But that means, that i have to use if statements everytime i want to know, if something is colliding. I know, that there is something like "pxltest", but its only for graphing applications. So my question is: Is there something similar for checking the text content on the screen (on a certain location)?



#2 GodOfCows

GodOfCows

    Newbie

  • Members
  • Pip
  • 13 posts

  • Calculators:
    fx-9860gii, fx-9750gii

Posted 16 November 2017 - 09:00 PM

No idea, but maybe something is useful here? Just translate it using google translate.

 

http://www.planet-ca.../programmation/

 

If I'm not wrong I don't know if there is another way to do it because I don't think there are any functions to replace the If statement. Would it be better if you instead drew the text and then used the if statements?

 

http://www.planet-ca.../graphismes.php

 

I'll reply if I find a better solution.


Edited by GodOfCows, 16 November 2017 - 10:56 PM.


#3 Satoshi

Satoshi

    Newbie

  • Members
  • Pip
  • 5 posts

  • Calculators:
    CFX 9860GII SD

Posted 30 November 2017 - 09:16 PM

Hey there! I made a small game for my casio fx-9750gii where i use "Locate" for getting text displayed on the screen. But that means, that i have to use if statements everytime i want to know, if something is colliding. I know, that there is something like "pxltest", but its only for graphing applications. So my question is: Is there something similar for checking the text content on the screen (on a certain location)?

 

I had similar problem and I've just created a matrix (size 7,21) where i put values corresponding to what is displayed on screen. For instance if there is a black dot in coordinates 17,5 I do this: 1->Mat A[5,17], and when there is nothing 0->Mat A[5,17]. With this you don't need to take text from the screen, just look up the values in this matrix.



#4 Krtyski

Krtyski

    Casio Addict

  • Members
  • PipPipPip
  • 82 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, fx-603P,
    fx-4500P, fx-5800P,
    fx-9860GII-2(SH4A),
    fx-9860GII SD,
    fx-CG20,
    fx-CG50

Posted 03 December 2017 - 12:18 PM

Hi

 

Casio Basic unfortunately does not have such commands or feature. Some other algorithm should help whatever you want to do.

 

Good luck!


Edited by Krtyski, 03 December 2017 - 12:19 PM.






Also tagged with one or more of these keywords: fx-9750gii, game, locate, text

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users