Mirage Source

Free ORPG making software.
It is currently Thu Mar 28, 2024 9:34 pm

All times are UTC




Post new topic Reply to topic  [ 1292 posts ]  Go to page 1, 2, 3, 4, 5 ... 52  Next
Author Message
 Post subject: Blitting Vis Inv?
PostPosted: Fri Jan 05, 2007 7:26 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
Well I need advice on blitting vis inv to the screen. Guidance basically.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 8:50 am 
Offline
Pro

Joined: Sat Jun 03, 2006 8:32 pm
Posts: 415
for visual inv or to get it on screen?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 8:56 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
Read carefully, friend.

Quote:
vis inv to the screen


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 9:08 am 
Offline
Pro

Joined: Sat Jun 03, 2006 8:32 pm
Posts: 415
Fine then I wont help


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 9:09 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
Doesn't matter to me :] Sooner or later I'll grasp my needs concerning none of your help.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 10:10 am 
Offline
Knowledgeable

Joined: Sun May 28, 2006 9:06 pm
Posts: 147
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 ^^

_________________
There are only 10 types of people in the world. Those who understand binary and those who don't.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 11:00 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 11:16 am 
Offline
Knowledgeable

Joined: Sun May 28, 2006 9:06 pm
Posts: 147
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 -_-

_________________
There are only 10 types of people in the world. Those who understand binary and those who don't.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 12:10 pm 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
Ahh sorry, thanks Gilgamesch :]


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 12:36 pm 
Offline
Knowledgeable

Joined: Sun May 28, 2006 9:06 pm
Posts: 147
Kuja wrote:
Ahh sorry, thanks Gilgamesch :]



well, its ok ^^

_________________
There are only 10 types of people in the world. Those who understand binary and those who don't.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 1:17 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
oh btw. Would I use bitblt in gamelogic?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 1:19 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
Fuck you. Retard ass bitch. Get a life and stop being retarded.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 1:57 am 
Offline
Pro

Joined: Sat Jun 03, 2006 8:32 pm
Posts: 415
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 2:05 am 
Offline
Pro

Joined: Mon May 29, 2006 1:40 pm
Posts: 430
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 4:00 am 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
Kuja wrote:
Fuck you. Retard ass bitch. Get a life and stop being retarded.


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

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 5:26 am 
Offline
Pro
User avatar

Joined: Wed Sep 20, 2006 1:06 pm
Posts: 368
Location: UK
Google Talk: steve.bluez@googlemail.com
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)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 9:20 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 9:35 am 
Offline
Knowledgeable

Joined: Sun May 28, 2006 9:06 pm
Posts: 147
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 ??

_________________
There are only 10 types of people in the world. Those who understand binary and those who don't.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 9:50 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
Yasin -_________-


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 11:09 am 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 11:18 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
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!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 1:28 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
=3

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

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 1:30 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
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.

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 3:42 pm 
Offline
Pro

Joined: Mon May 29, 2006 1:40 pm
Posts: 430
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 6:17 pm 
Offline
Persistant Poster
User avatar

Joined: Tue May 30, 2006 2:07 am
Posts: 836
Location: Nashville, Tennessee, USA
Google Talk: rs.ruggles@gmail.com
I deleted them. I must have missed deleting some of your responses to his posts.

_________________
I'm on Facebook! Google Plus My Youtube Channel My Steam Profile

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1292 posts ]  Go to page 1, 2, 3, 4, 5 ... 52  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group