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 - 07: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

    Casio Addict

  • Members
  • PipPipPip
  • 79 posts
  • Gender:Male

  • Calculators:
    fx-9860gii, fx-9750gii, TI-92, TI-89, TI-83 Plus

Posted 16 November 2017 - 08: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 - 09:56 PM.


#3 Satoshi

Satoshi

    Newbie

  • Members
  • Pip
  • 10 posts

  • Calculators:
    CFX 9860GII SD

Posted 30 November 2017 - 08: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 Freak

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

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 03 December 2017 - 11:18 AM

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 - 11:19 AM.




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

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users