Post

 Resources 

Console

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

 All Forums
 VBGamer
 VBGamer
 Collision and Jump help

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
Dark_Lord Posted - Jun 03 2006 : 12:44:07 PM
Hey Everyone, I'v started a practice game just to get used to bltbit and i have having some problems.
I would be thankful of you guys if you please help with collision detection and jump of a better kind, maybe like mario.

here are the pics for which i want the collisions detection. The whole level is only one pic. I mean the area where he places his feet.

Download Attachment: HELP.jpg
24.56 KB

10   L A T E S T    R E P L I E S    (Newest First)
Walrus Posted - Jun 13 2006 : 09:09:40 AM
Perhaps this modified version of my code can help you. It uses the Point method to check if a pixel is black or not. The collision detection this code does is very limited(you'll probably see that if you change the level), but it's just there to give you the basic idea.

Download Attachment: JumpGame2.zip
2.88 KB
Dark_Lord Posted - Jun 13 2006 : 02:59:40 AM
PW i dont understand what you want to say. The problem is I am using one whole image for the level. i am trying to learn tiling though. I dont have any rectangles in there.

Regards
PW7962 Posted - Jun 11 2006 : 7:29:28 PM
What I was trying to use was intersectrect and then having each rectangle on the map checked with the player to look for collision but I kinda have trouble with this problem in my game, except that using intersectrect would take a while to check for a lot of walls. I'll tell you if it works for me or not, but right now I think it is better than what you have before...
Dark_Lord Posted - Jun 11 2006 : 01:18:38 AM
thanks walrus for reply and the program. I am having trouble with detection of collision. I know the code required for it but the problem is that i am using the whole level as one image. I dont know how it goes. Do we use different PictureBoxes for such stuffs.
If you guys know any good tutorials on vbgaming, Please help me out

Thanks
Walrus Posted - Jun 10 2006 : 2:06:42 PM
Have a look at this simple program, Dark_Lord. Nothing exciting - it draws a small rectangle that jumps when you press the UP key -, but hopefully it will give you some ideas for your game. I didn't comment the code, but if you have any questions, just ask.

Download Attachment: JumpGame.zip
2.16 KB
Dark_Lord Posted - Jun 10 2006 : 09:41:51 AM
here it is PW

Download Attachment: gametry.zip
45.93 KB
PW7962 Posted - Jun 06 2006 : 2:29:19 PM
If you give me the code then I think I could help you out, but the way you are doing the background looks a little weird.
Dark_Lord Posted - Jun 03 2006 : 11:53:54 PM
i have made a code for jump. i first tried the keyup and keydown codes then i added it through timer. Both doesn't give me good results.
Dark_Lord Posted - Jun 03 2006 : 11:50:48 PM
please look at the pic eric. I want to add collision detection to the walls and player and some good code for making the player jump up.

Thanks
Eric Coleman Posted - Jun 03 2006 : 2:39:43 PM
well, what's your problem?

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

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