25-05-2008, 01:40 AM
how can darken the screen of the game?
as if night.??
Thx
as if night.??
Thx

Night
|
25-05-2008, 01:40 AM
how can darken the screen of the game?
as if night.?? Thx ![]()
25-05-2008, 02:41 AM
yes, I want to develop my game this code wanted to do this I will do so:
6:00 am until 6:00 pm daily, 6:00 am until 6:00 pm tonight. when I finish I will post here: D Thx
25-05-2008, 01:40 PM
Converting to DX8 will allow for variable darkening. Simply have all the Vertices have their lighting colour loaded from global variables and have these global variables darken/lighten through time. Would be a nice effect.
Quote:Robin:
25-05-2008, 02:01 PM
bad is that I do not understand directx ...
I know only visual basic even I did a game in visual offline after the show you and I am thinking of using the same system to make layers dark ..
26-05-2008, 01:54 AM
Robin Wrote:Converting to DX8 will allow for variable darkening. Simply have all the Vertices have their lighting colour loaded from global variables and have these global variables darken/lighten through time. Would be a nice effect.Easier to just add one big black shape and alpha only this one.
26-05-2008, 01:09 PM
It's not easier, as you don't have to render anything extra when you do it my way
![]() Quote:Robin:
26-05-2008, 11:29 PM
Add this to the bottom of:Public Sub BltTile(ByVal x As Long, ByVal y As Long)
Code: If GameTime = 1 Then The variable night refers to which tile it is going to blit over. So make your second tile on your tile sheet a 32x32 checker board. Dim Night as 1. This is a very primitive way to display night. If you want to just test it as night all the time, get rid of the if statement.
28-05-2008, 07:39 PM
I tried to do that did not was not night I can best explain please?
28-05-2008, 07:57 PM
Add
Code: End Code: Public Sub BltTile(ByVal x As Long, ByVal y As Long)
28-05-2008, 11:09 PM
If you can't figure it out, PM me. Also if you don't have a night tile then I'll make you one.
I think you might not be assigning the variable night. It was just an example. But I can explain one on one how to do it and how it works.
31-05-2008, 05:03 AM
Robin Wrote:It's not easier, as you don't have to render anything extra when you do it my wayIt's much easier. And you don't have to change your hole code. Just add 5 new lines and blit two new triangles! xD |
« Next Oldest | Next Newest »
|