|
Post by TheRPGNOOb on Mar 6, 2004 0:34:12 GMT -5
I actualy have a few questions.
The first: how do I have the gamma of an object change relative to how close it is to a 'light source' that is, the closer it gets, the lighter it gets, the furthur away, the more normal or dark it becomes.
The second: Is there anyway to simulate decent 'mode 7' type image altering in game maker (such as often seen in the old SNES games, useful for flying over clouds in an intro sequence etc...)
The third: How do I get the view to correctly keep the player in the center of the screen while scrolling (and be smooth type motion)?
Examples would be nice, but just the code is good enough.
|
|
|
Post by shiftybill on Mar 6, 2004 3:32:54 GMT -5
i can only answer q3 soz ;D
go and set a view to follow the object then play with the hborder and vborder things them about make it about 250 or so if the screen shakes the numbers are to big
|
|
|
Post by IsmAvatar on Mar 6, 2004 14:07:39 GMT -5
to Q1: unfortunately, as far as I know the manual and GML, I don't think you can change the gamma of only a certain area, you have to change the entire screen's gamma. Possibly a dll? (I don't know much about dll's, so correct me if i'm wrong)
|
|
|
Post by Antman on Mar 6, 2004 20:19:30 GMT -5
And in answer to Q2: Someone had managed to make an example of the world map from Zelda:LttP in a Mode 7 style, but it ran too slow for it to be of any use in a game. I had the example somewhere but i've lost it .
|
|
|
Post by TheRPGNOOb on Mar 6, 2004 21:04:35 GMT -5
No gamma changing to specific objects eh? Well, how about palette shifting to achieve the effect? I think I read in the GM manual something about that, but it seems it would be pretty complicated to have all the colors in a specific object simply increase to the next lightest hue. Then, I was thinking maybe have a transparent overlay of the character (lighter) that becomes less transparent the closer they get to a light source and visa versa. That would maybe work, however, I wanted to avoid using transparent sprites as much as possible (for speed considerations)
(as for mode 7: if ever someone finds or makes a dll, please let me know (if it's a fast/very good one))
|
|
|
Post by IsmAvatar on Mar 6, 2004 21:38:28 GMT -5
Alpha isn't ideal because it's just overlapping screendoor, so there actually are black pixels and such everywhere. Gamma is better because it just dims the screen, and no pixels are lost.
You could try other things for changing the color of an image to make it a darker shade or something, but remember you have to swap sprites with something else while you mod the sprite, and then go back.
|
|
|
Post by Antman on Mar 7, 2004 11:26:15 GMT -5
Hang on, I found the Mode 7 gmd. The normal, Zelda style world map part is actually quite fast, it's just when the camera start spinning around is when it starts to become slow. You can download it here: Game Maker Mode 7 Example
|
|