Home | Profile | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 [DX7]Questions about making an rpg
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


1 Posts

Posted - Jan 02 2007 :  1:23:24 PM  Show Profile  Click to see Compact's MSN Messenger address  Reply with Quote
1. How can I load a dds-file or a png-file from a resource?
2. My main sprites-image (png-format) has these dimensions now: 512 * 5424
With sprites in it of 32 * 48. Is that a good size to convert to dds?

3. First I had this problem with bitblt, but now I'm working with DX I have it with DX. :P

I want to get this effect:
But I don't know how to do that...

Can someone please give me an example-code for an rpg-engine that can do this?
And I want it accurate by the pixel. I saw other rpg's with collision-detection that were accurate by the tile, but I want it by the pixel...

Edited by - Compact on Jan 03 2007 01:35:25 AM


69 Posts

Posted - Jan 29 2007 :  12:33:29 AM  Show Profile  Visit Krisc's Homepage  Send Krisc an AOL message  Click to see Krisc's MSN Messenger address  Reply with Quote
For the collision, it is only complicated by not necessarily knowing the offset the player's feet make. If you keep a Z-Order of objects in your scene you can do collision testing based on it. In this case, if Player.ZOrder > Wall.ZOrder, Check For Collision With Player.Bottom - Offset, Else Check For Collision With Player.Bottom. It sort of depends on how you are rendering your Sprites, generally I would imagine that you have Rectangle coordinates for the space they take up on the screen...

I cannot help you with the first two since I have moved on to XNA...

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.16 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.