Post

 Resources 

Console

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

 All Forums
 VBGamer
 VBGamer
 [DX7]Questions about making an rpg

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an File
Check here to include your profile signature.
Check here to subscribe to this topic.
    

T O P I C    R E V I E W
Compact Posted - Jan 02 2007 : 1:23:24 PM
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:
http://home.planet.nl/~vanbr116/Zorder-and-collision.gif
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...
1   L A T E S T    R E P L I E S    (Newest First)
Krisc Posted - Jan 29 2007 : 12:33:29 AM
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...

VBGamer © Go To Top Of Page
This page was generated in 0.08 seconds. Snitz Forums 2000

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