Mirage Source
http://www.miragesource.net/forums/

Blitting Vis Inv?
http://www.miragesource.net/forums/viewtopic.php?f=201&t=1057
Page 1 of 52

Author:  Tony [ Fri Jan 05, 2007 7:26 am ]
Post subject:  Blitting Vis Inv?

Well I need advice on blitting vis inv to the screen. Guidance basically.

Author:  halla [ Fri Jan 05, 2007 8:50 am ]
Post subject: 

for visual inv or to get it on screen?

Author:  Tony [ Fri Jan 05, 2007 8:56 am ]
Post subject: 

Read carefully, friend.

Quote:
vis inv to the screen

Author:  halla [ Fri Jan 05, 2007 9:08 am ]
Post subject: 

Fine then I wont help

Author:  Tony [ Fri Jan 05, 2007 9:09 am ]
Post subject: 

Doesn't matter to me :] Sooner or later I'll grasp my needs concerning none of your help.

Author:  Gilgamesch [ Fri Jan 05, 2007 10:10 am ]
Post subject: 

Pando wrote:
Doesn't matter to me :] Sooner or later I'll grasp my needs concerning none of your help.



wtf is going on here guys? are you doing that because you are friends or dont you like each other?..anyway



so, the current code tells the vis inv to blit into the differnt icon boxes, you need to make a variable so that it checks how many items there are in the inventroy so blit it lets say 10 pixels away and then 32x32 pixels...then you need to change the blitting code to do that, i guess thats basicly it

add me in msn if you need help with that ^^

Author:  Tony [ Fri Jan 05, 2007 11:00 am ]
Post subject: 

Nvm. This isn't what I actually needed to know. But I thought about it and Kite told me a way he did it. Yes Kite<3.

Author:  Gilgamesch [ Fri Jan 05, 2007 11:16 am ]
Post subject: 

Pando wrote:
Nvm. This isn't what I actually needed to know. But I thought about it and Kite told me a way he did it. Yes Kite<3.


yeah, well then next time you should think about the question twice before you ask it:

Quote:
--->blitting vis inv to the screen<----. Guidance basically.



and thats what i tried to do -_-

Author:  Tony [ Fri Jan 05, 2007 12:10 pm ]
Post subject: 

Ahh sorry, thanks Gilgamesch :]

Author:  Gilgamesch [ Fri Jan 05, 2007 12:36 pm ]
Post subject: 

Kuja wrote:
Ahh sorry, thanks Gilgamesch :]



well, its ok ^^

Author:  Tony [ Sat Jan 06, 2007 1:17 am ]
Post subject: 

oh btw. Would I use bitblt in gamelogic?

Author:  Tony [ Sat Jan 06, 2007 1:19 am ]
Post subject: 

Fuck you. Retard ass bitch. Get a life and stop being retarded.

Author:  halla [ Sat Jan 06, 2007 1:57 am ]
Post subject: 

Kuja wrote:
Fuck you. Retard ass bitch. Get a life and stop being retarded.


ummm who are you even saying this too? lol

Anyways you would want it to blt it out in GameLoop when everything else is being blted Im sure. I would make it the last thing blted.

Author:  Misunderstood [ Sat Jan 06, 2007 2:05 am ]
Post subject: 

halla wrote:
Kuja wrote:
Fuck you. Retard ass bitch. Get a life and stop being retarded.


ummm who are you even saying this too? lol

Anyways you would want it to blt it out in GameLoop when everything else is being blted Im sure. I would make it the last thing blted.


Obviously he was talking about himself, since that is now the last post :)

Also, obviously :P you would use bltfast and blt things just like everything else is blt if its blting to the screen where the map is, if its blting to a picturebox, you could either use bitblt or use blttohdc with dx.

Author:  Lea [ Sat Jan 06, 2007 4:00 am ]
Post subject: 

Kuja wrote:
Fuck you. Retard ass bitch. Get a life and stop being retarded.


Now, now. Is that really called for around here?

Author:  Xlithan [ Sat Jan 06, 2007 5:26 am ]
Post subject: 

Do I sense lack of moderation here?

I didn't know we had so many girls on the forum (Only the smart people will get this joke)

Author:  Tony [ Sat Jan 06, 2007 9:20 am ]
Post subject: 

didn't someone see the guy saying "I EAT SHIT" T___T

with the big o avatar... ? And someone deleted his post making all think I'm name calling myself? okay.

Author:  Gilgamesch [ Sat Jan 06, 2007 9:35 am ]
Post subject: 

Kuja wrote:
didn't someone see the guy saying "I EAT SHIT" T___T

with the big o avatar... ? And someone deleted his post making all think I'm name calling myself? okay.


ok...who is it then ??

Author:  Tony [ Sat Jan 06, 2007 9:50 am ]
Post subject: 

Yasin -_________-

Author:  Robin [ Sat Jan 06, 2007 11:09 am ]
Post subject: 

Just do it my way for now.

It's not the greatest, but it works.

It also allows you to expand your Inventory size later on, with only adding one more line of code (or you could optimise the entire thing and have only three lines of code for it!)

This is how I did it here (but with alphablending for the background thingy):

Image

Author:  Tony [ Sat Jan 06, 2007 11:18 am ]
Post subject: 

What way is that? Oh the way you told me?

Also, tell me whats up with my code. Its buggy and doesn't blit the correct item.

Code:
Sub BltInvItems(ByVal ItemNum As Long)
Dim X As Long, Y As Long, I As Long

    rec.top = Item(ItemNum).Pic * PIC_Y
    rec.Bottom = rec.top + PIC_Y
    rec.Left = 0
    rec.Right = rec.Left + PIC_X
   
    X = 108 - 35
    Y = 78
    'Call DD_BackBuffer.Blt(rec_pos, DD_ItemSurf, rec, DDBLT_WAIT Or DDBLT_KEYSRC)
    Call DD_BackBuffer.BltFast(X + (ItemNum * 35), Y, DD_ItemSurf, rec, DDBLTFAST_WAIT Or DDBLTFAST_SRCCOLORKEY)
End Sub


Note ( 35 is used because the spacing in the bitmap file )

Nvm. fixed it, Now for the new embarks!

Author:  Lea [ Sat Jan 06, 2007 1:28 pm ]
Post subject: 

=3

Do you generate your light mask on the fly Kite? 1 FPS isn't a playable game, there....

Author:  Lea [ Sat Jan 06, 2007 1:30 pm ]
Post subject: 

Kuja wrote:
didn't someone see the guy saying "I EAT SHIT" T___T

with the big o avatar... ? And someone deleted his post making all think I'm name calling myself? okay.


My statement still stands. When people do stupid things like that, just ignore them. They're cleaned up by the moderators soon enough.

Author:  Misunderstood [ Sat Jan 06, 2007 3:42 pm ]
Post subject: 

Kuja wrote:
didn't someone see the guy saying "I EAT SHIT" T___T

with the big o avatar... ? And someone deleted his post making all think I'm name calling myself? okay.


I didn't, but I figured you were talking to one of the spammers.
I just felt like joking with you :P

Author:  Rian [ Sat Jan 06, 2007 6:17 pm ]
Post subject: 

I deleted them. I must have missed deleting some of your responses to his posts.

Page 1 of 52 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/