Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

dimx

Members
  • Posts

    351
  • Joined

  • Last visited

    Never

Everything posted by dimx

  1. You collision detection would be the same when you move your pixel movement will be converted into tile movement and then you check if there is a collision there or not on that tile. Pixel collision detection is a little more complex. It also gets even more complex when you want to get a reaction from the collision lets say two object collide and bounce off one another. I am not sure how in depth you want to get into with this right now I assume you are a begginer and thats is why I am trying to explain this as simple as I can. It all depends on what you are planning to do. I have used this method to make the ship glide smoothly across the map the collision might not be as accurate but playing just with the graphics and current settings you can get it fairly close without doing much work. Here is a little clip showing the movement and at the end you can see the collision and the ship bouncing off as it collides on the side of the map. The sprite is not properly centered so it does look like its not coliding where its supposed to but with a little alignment it will. ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons//smile.png) http://www.youtube.com/watch?v=gcYzetz-bAc&feature=youtu.be
  2. > The question is why does it have so much issues with lag? You need to understand some basic networking fundamentals. A packet is sent from the server to the client in a physical form bit by bit. This packet might travel in a form of electrical, light, or radio wave pulses depending on how far and where you are sending the information. Now if your server is in England and your client is in Australia you will experience latency. This latency is determined by the time it takes the client to send a bit of information to the server depending on the connection speeds and where the packet travels to get to its destination because not all packets will travel in the same path to the destination always and the time it takes for the server to send back a reply. This time is usually unpredictable if the packet travels great distances because a router might have malfunctioned somewhere or there is high level of traffic because just like real traffic there is internet traffic as well. So lets say in a worst case scenario it takes 1.5 seconds for you to send a packet to the server that you just moved and the server to confirm that just one movement. In 1.5 seconds you might be 10 steps ahead of the server so the server is behind and is trying to catch up this is referred to as lag. Or lets say that packet got corrupt somehow and it never reached the server. The server is not going to know so when it does its check for movement its going to see you are not on the spot where you are supposed to be and its going to try to fix it this might vary depending on how you program it. It might just put you back to the original spot or do something else. Now there are hundreds of techniques used to mask the latency so if there was a high level of latency or corruption for some reason the player is not going to notice much of it. You are talking about pixel movement in your case the client could be based on pixel movement and the server could be tile based. You leave the current tile based movement and just make the character on the screen move every pixel. Then you get the players current pixel location and you divide it by 32 because there are 32 pixels in 1 tile depending on the engine if it uses 8, 16 or 32 pixel tile engine. You are going to then round up or down to the nearest whole number depending on the remainder. Then you will check if the player has actually moved enough pixels to be considered that he moved 1 tile in total. If he has then you send the packet just like you would send them now. This is one way that you can avoid sending information back and forth constantly but like I mentioned above there are thousands different ways you just need to be creative. I might have not explained the above fairly well or have a mistake somewhere so if someone catches something let me know. > Is there a proper of more efficient way of working with winsock with a pixel based movement and large frame animation? Large frame animation? not sure what you mean by this but if you are thinking about sprite frames and map objects like a windmill. An easy way is to just store all of the information for the animations like the frame width height and rows and columns in binaries and save it to a file. Then whenever the client starts up it downloads this information from the server and stores it in cache or client side files so you don't need to keep downloading it over and over unless there is a change to it. Once you have the information in the clients memory there is no need to keep asking the server for the animation information because you already have that info. If you make changes force the client to re download and clear old and store new information that is it.
  3. > Its not :/ I have to contact my internet provider so he can open access to the modem configuration. Is there any free/low cost hosts that would make it possible to run the server? https://clients.thrustvps.com/cart.php?gid=23 They have some starting at about 7 bucks per month. If you cant configure your network now what makes you sure you will be able to configure a VPS? Is there a particular reason you are using port 80? You are not hosting a web server or an browser game change it to something else, you might have multiple things wrong. No-Ip isn't configured properly, your firewall is blocking everything it sees. AVG is blocking something. Did you try to trace rout?
  4. dimx

    Tutorials

    I am sure there are comments somewhere in the code. Too much comments can be confusing too. If you are attempting source edits you should be able to read the code or understand it a little bit to know whats is doing what with or without the comments. If you don't know then you should look up tutorials for VB6 instead or get a brother knowledge on programming. You can ask the person that made the code to explain it to you or make it clear. If they can't do that then I suggest you don't even look at that code because 99% of the time you will be learning the wrong thing.
  5. Cool stuff man fun tutorial to follow. It says they are out of that package I can guess why. Hows the connection speed, not sure where these are located but I had one in England and it was just horrible. I use [https://clients.thru…cart.php?gid=24](https://clients.thrustvps.com/cart.php?gid=24) they have servers starting at 8 USD per month. I got exact specs as you for 16 USD per month but I am running Server 2008\. Setting up one of these server was a breeze.
  6. How about a trusted admin creates a Paypal account and people that would like to contribute to this add the money to that pot. When 350 is collected pay Budweiser. The people that contributed get the source. But there should be a minimum amount you could contribute. With daxtercc's 50 bucks that's 300 more to go which is really cheep and can be easily done with a community that has a user base this huge.
  7. Oh referring to yourself in third person. I see what you did there. Ok then carry on. Who looks at the pictures anyway. ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons//biggrin.png)
  8. Did someone misinterpret the word "eat"? o.O I told a dirty joke. Does that count as a joke?
  9. > What? Cheating? We're just making the damn things stop spamming 4 lines of spacebar. How dare you!! > Lol the 3 Damn Cheaters Put a Peny on ctrl because they know where the NPC Spawns ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons//biggrin.png) How do you know it was a penny? Are you a spy?
  10. dimx

    Syria

    ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons//biggrin.png) This made me smile thank you for letting us know. Dude don't panic when you hear about Egypt, Iran, Afghanistan, Lybia, Israel, Pakistan, Iraq
  11. The game isnt fair because I shold wait and not post so I get more clues which increases my chance of winning. I was going to guess the number of possible combinations in a activation key but that is higher than lolicat so I say. 44,596
  12. That would be the best idea really but if you are going to do that you should look into a different language in my oppinion. Yes VB6 is still alive and kicking but its been over used no need to re invent the wheel. I think a web based engine would be great. Java, HTML5, Javascript. There are plenty of tutorials available online. I am new to this as well so I wouldn't beable to help much but if there are a couple people out there that are good they should come together and make a simple engine with basic functions and it will evolve over time just like everything else. Imagine being able to play and build your game from your cell phone that would be awsome. We can even pull together as a community and hire a proffessional programer to provide us with a basic engine that we all can use to learn and improve ourselves. Don't be scared of change I don't think SQl is hard with proper instructions people will learn it and it will prepare most of people here for school and jobs in the future.
  13. Did you also try changing the compatibility mode to XP for the client as well? Try disabling the UAC completly. Or did you delete something or have a missing file perhaps.
  14. No problem glad you got it working.
  15. If I am not mistaken if you have admin access they wont attack you. They only attack regular players. That is how it has been in the older versions I didn't bother checking or asking which version you have.
  16. > I know that this topic is a bit old but you didn't update the post if you have it working or not. If you do nice I would like to post another solution to this problem if someone else runs across the same issue. > > Open you .vbp file in notepad and find this line. > > Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCTL.OCX > > See the 2.0 in that line if it is 2.0 on yours as well then change it to 2.1 > > If you have 2.1 then change it to 2.0 or if you don't want to guess check the ocx version that is currently installed but the most common versions are those two then just save the notepad and open your project the regular way. > > Good Luck I already posted this somewhere else try that.
  17. How long do we need to wait for the pocket size version of this?
  18. > He didn't just do a loop, he did randomising for each array index, and then sorted the whole array by acsending or descending order. > > EDIT: Oh nvm. Lol - I know Budweiser and Exception was doing the benching and obviously, VB6 is slowz when put to a larger test. Randomizing and putting the array in order is a different ball game then you will have different search algorithms that could impact the speed.
  19. Whats the os? With capture screen software running I get 4-5\. (You need to play the video in HD full screen to see the numbers clearly.) http://www.youtube.com/watch?v=d_aRJAdoCY0&feature=youtu.be
  20. [background=transparent]I decided to run a test for vb6 and I get 3ms from the compiler.[/background][background=transparent] Also this is not an even comparison because I have a 2.60ghz processor so unless you have similar specs then its just a guessing game.[/background] Here is my code. ``` Private Declare Function timeGetTime Lib "winmm.dll" () As Long Private ArrayLoop(250000) As Integer Sub runTest() Dim x As Long Form1.lblStartTime.Caption = timeGetTime For x = 1 To 250000 ArrayLoop(x) = 1 Next Form1.lblEndTime.Caption = timeGetTime Form1.lblResult.Caption = Form1.lblEndTime.Caption - Form1.lblStartTime.Caption End Sub ```
  21. [background=transparent]Fair enough I didnt read your post carefully but I actually have an associates in computer science [/background][background=transparent] ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons//wink.png)[/background][background=transparent] [/background][background=transparent]. Personally I found the field very boring no offense to anyone of course it was just something that I didn't see myself doing. I am currently 15 credits shy for my BS in Mechanical Engineering. [/background]
  22. I would vote for self because that is where all the motivation comes from XD. And then Combination of Books & College Courses. The reason I say books is because they are written and reviewed by people that more than likely know what they are doing. I am kind of 50/50 on the college course because it depends on the acctuall college and the universityes program / staff. My frend had a proffessor that was teaching python and he wasn't prepared for the course at all because the university was cutting costs they decided a networking proffesor should teach the course and the proffesor spent his summer learning the language and its hard to teach something that you havent mastered yourself yet. As for the online sources that is a big risk you will need to do more research because anyone can post a tutorial now in this time and age and just because it looks good doesnt mean it is so you will need to find a couple of references that match or are reliable sources before you commit to learning from it.
  23. I am getting into this a little late and this might have been mentioned too lazy to read but whatever. People need to realize that this company is thinking ahead; thats the only way to stay compedative in a fast changing market. If you guys do some some research on what kind of technology Microsoft is investing in you will realize that this OS is perfectly suited for them. Yes it takes time to get used to the interface but with anything new it takes time. If you got the same thing over and over again there is really no motivation to evolve.You have to give them credit for stepping out of their comfort zone and trying something new for a change. SO give them some slack they are just trying to build a product for the future that is around the corrner.
  24. > It doesn't matter what he said. You obviously didn't comprehend what I wrote. The fact is that the length of time required to write something in C/C++ is higher than it takes to write the same thing in VB. The length of time required to write something exponentially increases the more dynamic or complex the application becomes; VB, as far as time and effort goes, will always win over C/C++; that's why it's still in use today, and that is to rapidly develop applications. > > As far as "not knowing how it works" goes, that's not true at all. You still have to know the difference between the processor cache and managed heap, the difference between a value and a reference, a shallow and deep copy, scope, inheritance, generics, polymorphism, etc. The list goes on. The point is that regardless of the language these concepts never change. That you would even insinuate differently leaves me to question your own knowledge, and thus renders your opinion questionable. [background=transparent]I think you are overlooking the point I am trying to make here. Yes we get it vb is easier to use and to learn but then you go on and say he is going to need to re-learn. The relearn part is what is going to kick him in the ass after learning vb you will have an extremely hard time learning c++ as opposed to the other way around. If you are planning on becoming a professional programmer. Video games are very hardware intensive and if you are trying to be a professional video game programmer you will need to access that hardware faster and more efficiently. Even if he is planning to just make little apps as a hobby I would still recommend c++ because it will make you a better programmer even though you might not be using it to make your actual apps with. And for the "not knowing how it works" statement I don't know where you are going with that. I already stated that in my first post by saying "the concept is very similar with the rest of the languages just the syntax is a little different".I don't see the point of questioning my own knowledge I wouldn't comment on something if i didn't have at least a little knowledge on the subject. [/background]
  25. > I disagree. The majority of the problem with learning a programming language is because of the complexity associated with trivial or otherwise simple things. If you want to write boilerplate crap, go with C/C++ and spend days developing something simple. If you want to skip the boilerplate crap and develop something simple (with limited control over the boilerplate crap) in hours, go with another high level language. He didnt say something simple > What do you think is the best programming language to learn to become a Game programmer and make some of your own applications? When you learn a high level language you will not understand what you are doing because most of it is done behind the scenes, I didnt say you have to master it. But if you wanted more flexibility in the future you will have to learn it anyway. Sure if you want something just to fool around by all means go ahed use whatever you want. I would vote for html5 and javascript then. But in my opinion if you are going to learn something and you are serious about it then you should be ok with spending the extra time to learn it.
×
×
  • Create New...