Ultimate Amiga

Network Boards => AMOS Language Discussion => AMOS Factory => AMOS Forum => Topic started by: xboxisfinished on March 12, 2019, 07:29:08 PM

Title: Turn screen black and then reset it back to normal
Post by: xboxisfinished on March 12, 2019, 07:29:08 PM
   Hey,

I want to be able to turn the palette of the screen pitch black 100% and after a certain time reset it back to normal palette instantly. How do I go about doing that? I have one final help on one issue if possible.

I want my title screen to animate like this (https://speckyboy.com/wp-content/uploads/2017/05/css-text-amimation-thumb.gif) and I want when the player wins a round or enters a draw I want at the center of the screen for it to animate like this

(https://i.gifer.com/QvPw.gif)

The above animation on the bye part.......once the circle closes and turns the screen pitch black I want to reverse the circle to inflate again showing the new screen with the next stage of the game. How do I go about doing that?

Thanks in advance.

Title: Re: Turn screen black and then reset it back to normal
Post by: Sidewinder on March 13, 2019, 05:01:24 AM
To set the screen palette to black and back again, look up the AMOS Palette command.

For the title screen, you could create several Bobs that contain the characters of the text and use the Move Y instruction to move them in from the bottom of the screen.  Once the Bob is in position, you can use Paste Bob to draw in permanently on the screen and then reuse the Bob number.

The other animation is a bit more tricky.  How many colors does your screen use?  You could try to use some of the advanced blitter modes in the Screen Copy command to combine the game screen with a second screen that contains the moving circle.  Scaling text is much more difficult and it is usually faster to draw an animation sequence for a Bob to do that part.  There may be other ways to do this animation, I'll keep giving it some thought.
Title: Re: Turn screen black and then reset it back to normal
Post by: Volvo_0ne on March 13, 2019, 06:04:52 PM
Or you could create an anim in (say) DPaint then load and play it with the Iff Anim command )This would be quite quick if pre-loaded to ram disk.
Title: Re: Turn screen black and then reset it back to normal
Post by: xboxisfinished on March 17, 2019, 07:37:20 PM
Or you could create an anim in (say) DPaint then load and play it with the Iff Anim command )This would be quite quick if pre-loaded to ram disk.

Thank you! But I decided to go to a different approach when it comes to the title screen. However the iff anim command is perfect for the fancy effect when declaring who won and the next turn effect.