C# Xna tutorial 2: Advanced sprite drawing, rectangular collision part 2
Loading...
4,796
Loading...
Uploader Comments (XSkullsGames)
see all
All Comments (11)
-
thanks man this is awsome !! all the other vids never worked thanks!!!!
-
i need it too ..
its like the player can pass through enemy and it cant pass out of the form boundary...
thanks
-
okay, I see. Thanks I'm gonna play around with that right now...
-
wonderful thank you
Loading...
I have very little expericence programming and my goal is to be able to create an overhead view game like Zelda. Your tutorials have helped me get a few steps closer and I'd love to see you go further in that direction. What I think ShortAndSweet means by "solid collision" is the sprite not being able to walk through the other sprite. Like a wall would be in Zelda. Not sure what to write in the second half of the if(playerRect.intersects(wallRect)) line. Anyway thanks I'm starting to get it :)
BattleToads4ever 1 year ago
XSkullsGames 1 year ago
@XSkullsGames LOL when i tried the keyboard check method you suggested, i got the player stuck inside the wall and i couldn't move!
agentEE7 8 months ago
@agentEE7 LOL, that'll happen ;) I've yet to find the perfect collision formula :O
XSkullsGames 8 months ago
can you do a solid collision?
p.s. great tutorial
SuperShortAndSweet 1 year ago
@SuperShortAndSweet
What exactly do you mean? Per pixel?
XSkullsGames 1 year ago