Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Can't Turn off Rainbow Effect  (Read 2629 times)

0 Members and 1 Guest are viewing this topic.

roberthazelby

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 19
Can't Turn off Rainbow Effect
« on: March 16, 2011, 09:04:26 PM »

Evening all,

After a few weeks away from AMOS Pro I've spent the last couple of hours re-familiarising myself with the code I've written, and have started adding a few bits to my (currently, rather laughable) program.

My program starts of with a nice vertical text scroller, with a rainbow effect at the top and bottom of the screen. The script has been taken from Phil South's "Mastering AMOS" book. I've made a small change, so that the scroller only runs once, before hopping out of that routine.

So far, so good.

Once that's done I then want to display a non-scrolling options screen (Title, "Press fire to start", and detailing a few options).

This displays fine, along with a nice randomly generated star field (I may remove these) and a mod kicks in.

Everything looks good. However, the rainbow effect is still present at the top and bottom of the screen.

I've tried putting a RAINBOW DEL in once the scroller has finished, but this doesn't seem to do anything.

I'm certain I'm doing something daft, but what, I don't know.

Any suggestions?
Logged

Hungry Horace

  • Amorphous Blue-Blob Man
  • Site Admin
  • A4000T
  • ******
  • Karma: 307
  • Offline Offline
  • Gender: Male
  • Posts: 3,364
  • Don't forget... Ameboid's need love too!
    • AUW
Re: Can't Turn off Rainbow Effect
« Reply #1 on: March 16, 2011, 10:12:06 PM »

it's cheating, but you could replace it with a "rainbow" which is just black->black (or whatever colour you want)

I suspect it has something to do with it not being removed from the overscan areas, but i cant really be sure.
Logged
Quote from: KillerGorilla
because winuae is made of code and your amiga is made of stuff

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: Can't Turn off Rainbow Effect
« Reply #2 on: April 06, 2011, 06:42:55 PM »

Are the dimensions of both screens the same? Are you using the same screen number for both screens?

The reason I ask these questions is because a larger screen (e.g. 300 pixels high) will have the top and bottom bits showing if a smaller screen (e.g. 200 pixels high) is created infront of it. If you are using the same screen number for both screens this won't be an issue.

You can hide and unhide screens as required (they remain in memory, but are not displayed) using, IIRC, the Screen Hide <SCREEN_NUMBER> and Screen Show <SCREEN_NUMBER>. If you don't use a screen number with these commands all active screens will be affected.


Regards,
Lonewolf10

Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022