I am trying to determine collision in a 2D Side Scroller environment using Rectangles. However, the way most people do it is to get the bounds of the Tile. I do not use Tile's in this case, I am just drawing Simple Full Colored Rectangles using Graphics2D. `g.drawRect(int x, int y, int width, int height)` I would obviously need a GameObject Class, which I have below, and I do check for an intersect, but I don't think that would actually check for collision because I dont know where it should be called. Also, how would you know which parameters to …

Member Avatar
Member Avatar
+0 forum 4

So im making a simple RPG using c# and xna. For collision, i am using a text file that contains data about whether a tile is passable or not. I iterate through them and create rectangles based on the position of the 'bad' tile in the text file. I then used these rectangles for collision detectiong. Now, I can easily check whether or not the player is collision with these 'bad' tiles by using the 'Intersection()' method of the Rectangle type. What I am struggling with however, is what do I do once the collision is detected. So far, I …

Member Avatar
Member Avatar
+0 forum 1

So im posting this here and not under game development because this is more of a problem solving question, not directly game related. Im making a simple RPG using xna. Im currently working on collision detection, however running into difficulty. I can successfully check for a collision between the player and a 'bad' tile, however I am stumped as to what the engine should do to prevent the player from passing throguth it! Currently, I am getting the players based on an enum 'Direction', which is set whenever one of the 4 arrow keys are pressed. I am then creating …

Member Avatar
Member Avatar
+0 forum 1

Im making a 2D platformer-ish shooter its really simple and not much effort put in it, it is my first game Im making in python and its for a school project and needs to be finnised really soon. Everything is working just fine but Im having problem with some collision detection with my shoots, I don't know how to make it. So would really appreciate any help I could get. Feel free to tell me if anything is wrong or could be better and use this code for your own learnings. And I know its a bit messy but I …

Member Avatar
Member Avatar
+0 forum 11

IM A COMPLETE TOOL PLEASE IGNORE / DELETE THIS POST Hello everybody, im currently trying to learn 3d game development (ive developed 2d games in the past, nothing this complex, i am a third year programming student). Ive been working on this project in my spare time for the past few weeks, and im really stumped. Im using axis aligned prisms for my collision detection, and I cant seem to get it to work correctly. Im using java lwjgl to program openGL. I would really appreciate any assistance you guys can offer (even if its just pointing me in the …

Member Avatar
+0 forum 0

Okay, I was downloading some zip files some while ago while at the same time, I'm also extracting downloaded zip files on my hd. By accident, the zip files that are still in extraction, I managed to click delete on them. The programs started to hang, then froze, which left me no choice but to restart it. When I plugged my external hd back, it can't be detected anymore. How did that happen and what should I do to fix this? I've tried everything, my dad opened it to check if its loose or something, but it's not. It's not …

Member Avatar
Member Avatar
+0 forum 11

My school assignment is to use browser detect to get the name and variation of a browser. I have been looking for detectible features, but the codes are way long. Document.all is good for seeing if this is explorer 4+, but what is a good thing for finding explorer 7? Explorer 8? What is a feature exclusive to Safari? To Chrome? to Firefox? This seems really hard, as browsers seem to be trying to get more compliant, that means there is less variation to check on. Thanks

Member Avatar
Member Avatar
+0 forum 1

Hello, I'm working on a bluetooth chat application project called 'BlueChat'. I coded the server (BServer.java) and client (BClient.java) parts (2 separate threads). The visual part is called BlueChat.java and allowes the user to select to be the server or the client. I wrote a lot of System.out.println("")'s to check WHY NO MESSAGE IS SEND (there are no errors or exceptions). So I detect that: - On the server, when it reaches [code]con = notifier.acceptAndOpen();[/code] part, loopes infinitely as it doesn't receive any join from a 'Client' - On the client when it passes the 'inquiry' but it's waiting infinitely …

Member Avatar
Member Avatar
+0 forum 7

The End.