Jump to content

Photo

How to position text in Graphics mode 1+16 in Atari BASIC?

basic position

3 replies to this topic

#1 Fabrizio Caruso OFFLINE  

Fabrizio Caruso

    Chopper Commander

  • 105 posts

Posted Tue Feb 19, 2019 10:07 PM

Hi everyone!

 

I am trying to use Atari BASIC to print some text in graphics mode 1+16 but the position command seems not to do what you would expect.

 

The code below will show "hello" at the center of the top line and not at position 0,0.

10 graphics 1+16

20 position 0,0

30 print #6,"hello"

40 goto 40

 

 

How can I have the hello print at the top left corner in this graphic mode?

 



#2 phaeron OFFLINE  

phaeron

    River Patroller

  • 2,704 posts
  • Location:Bay Area, CA, USA

Posted Tue Feb 19, 2019 11:17 PM

The POSITION statement is fine. The problem is the comma in the PRINT statement between #6 and "hello", which inserts ten spaces. Use a semicolon instead.



#3 _The Doctor__ OFFLINE  

_The Doctor__

    Flux Capacitor Master Craftsman

  • 6,553 posts
  • Location:10-0-11-00:02

Posted Tue Feb 19, 2019 11:36 PM

so close

 

10 graphics 17

20 position 0,0

30 print #6;"hello";

40 goto 40



#4 Fabrizio Caruso OFFLINE  

Fabrizio Caruso

    Chopper Commander

  • Topic Starter
  • 105 posts

Posted Wed Feb 20, 2019 12:10 AM

Thanks everyone and sorry for my noob question







Also tagged with one or more of these keywords: basic, position

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users