I was wondering, I always wanted to start making my own game, I do have experience when it comes coding to normal applications etc. But, I wanna to know is it worth learning XNA , I mean is it good for games so I can like make really good games, because like I said before I really want to make my own game .
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 ah, ok I get it. To do that, you have several options, none of which i've perfected. you can do a simple rebound collision. if(playerRect.intersects(wallRect)) { playerPos.X -= 1; } and you can add a keyboard check along with that. if(playerRect.intersects(wallRect) && keyboard.getstate(PlayerIndex.One).IsKeyDown(Keys.Left)) { playerPos.X -= 1; } etc, etc. that's not the best, but it'll get you started.
thanks man this is awsome !! all the other vids never worked thanks!!!!
slipknot11290 3 months ago
This has been flagged as spam show
I have an question.
I was wondering, I always wanted to start making my own game, I do have experience when it comes coding to normal applications etc. But, I wanna to know is it worth learning XNA , I mean is it good for games so I can like make really good games, because like I said before I really want to make my own game .
Regards!
Pr3fixProducts 8 months ago
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
okay, I see. Thanks I'm gonna play around with that right now...
BattleToads4ever 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
wonderful thank you
KILLERKILLE9 1 year 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
i need it too ..
its like the player can pass through enemy and it cant pass out of the form boundary...
thanks
vimaljacob 1 year ago