Question 2D Side Scrolling Game Help

Bryce Gough

Active member
Joined
Mar 8, 2011
Messages
36
Location
Perth, Australia
Programming Experience
1-3
Hello, I'm developing a 2D side scrolling game in vb.net, I've got as far as walking around, shooting, start screen and sound... But I need help with making it scroll sideways, and I really need help with creating floors/ledges to walk on, I'm using picture boxes for the player/floors/ledges and was trying:
VB.NET:
If player.bounds.intersectswith(ledge.bounds) then
player.location = new point(player.location.x, ledge.location.y)
end if
But it didnt work, and everytime i touched the ledge i would teleport ontop of it...
I know thats what i coded it to do, but I want to make u have to jump onto it.

Thanks.. :D
 
Back
Top