Ultimate Amiga

Please login or register.

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

Author Topic: Turn screen black and then reset it back to normal  (Read 4207 times)

0 Members and 1 Guest are viewing this topic.

xboxisfinished

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 205
  • Generic Amiga User
    • gamemakermagazine.com
Turn screen black and then reset it back to normal
« 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 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



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.

Logged

Sidewinder

  • Forum Mod
  • A600
  • *****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • http://www.liquido2.com/
Re: Turn screen black and then reset it back to normal
« Reply #1 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.
Logged
- Sidewinder

Volvo_0ne

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 71
  • A1200 lover
Re: Turn screen black and then reset it back to normal
« Reply #2 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.
Logged
Transuranic heavy elements may not be used where there is life.

xboxisfinished

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 205
  • Generic Amiga User
    • gamemakermagazine.com
Re: Turn screen black and then reset it back to normal
« Reply #3 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.
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022