Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Change Alpha of entire screen at end of game then display Game Over sprite normally.

Author
Message
yoda333
14
Years of Service
User Offline
Joined: 3rd Apr 2012
Location:
Posted: 26th Apr 2012 12:02
Hi - Greeting to the forum members.

I would like an effect similar to changing the alpha of a "sprite" to the entire screen at end of a game, then display a "Game Over" sprite normally over the alphaized screen. If that makes sense.

All the best
Vic
yoda333
14
Years of Service
User Offline
Joined: 3rd Apr 2012
Location:
Posted: 26th Apr 2012 14:16
Sorry Guys

Got this myself
#########################################################
load image "gameovr.png",8200
get image 4000,0,0,1024,768,2
sprite 9700,0,0,4000
SHOW SPRITE 9700
sync
for fs = 1 to 215 step 5
SET SPRITE ALPHA 9700,fs
sleep 10
sync
next fs
SHOW SPRITE 9700
sync
Sprite 8700,60,150,8200
SHOW SPRITE 8700
sync


Basically a screen shot at the end of game changed to a sprite, Alpha changed on that sprite and the gave over sprite displayed.

Sorry for the inconvenience
Vic
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 27th Apr 2012 00:36
Quote: "Sorry for the inconvenience"


Not inconvenient at all - you've shown other users one way of solving the problem. We like to see such things.
Mychal B
15
Years of Service
User Offline
Joined: 21st Jul 2010
Location: Coos bay, rainville
Posted: 27th Apr 2012 01:41
That's a pretty smart little way to do it!

The fastfood zombie killer

Login to post a reply

Server time is: 2026-07-10 09:47:45
Your offset time is: 2026-07-10 09:47:45