Jump to content


PetzI

Member Since 09 Aug 2006
Offline Last Active Today, 11:00 AM

Topics I've Started

& (Ampersand) Underlines Text

28 April 2013 - 09:57 PM

Hi, I've used show_message() on a string with an ampersand (this symbol -> & ) and it underlines the character immediately after the ampersand. If you put multiple ampersands, only the last one does anything and the others are ignored.

 

It's really odd. Does anyone know why this happens? I've noticed that in the "Add Event" pop-up menu some letters in the event categories are underlined. Maybe the two things are related?


Full-Scale Room Screenshot

26 February 2013 - 02:39 PM

Hi, I have a room that's too big to fit the screen and am using a view that's 800x800 px in size. I want my program to be able to save a full-scale image of the entire room, so if the room is 2000x1600, I want an image of the same size.

I found this code: http://gmc.yoyogames...howtopic=389551, but it always makes an 800x800 image, which is not only small but a different ratio, which flattens the image. What would be the easiest way to accomplish what I want?

Packet safety and latency

14 January 2013 - 04:28 PM

Hey there, I'm in the process of making my first online game and I have a couple of questions. I'm using 39DLL, and I'm using this tutorial as a base (even though it has some errors).

1) I was once taught that occasionally packets get partially lost and to make sure that the whole packet was received, computers use a checksum. Is this done automatically, or do I need to implement a checksum in Game Maker?

2) How can you figure out how much latency there is between the server and a client?

3) Should collisions be handled by the server? In my game, there will be a grid and the players can shoot at a particular grid cell to hit whatever is there. So I was thinking of having the player telling the server that they want to shoot that cell and the server will tell them if they've hit an enemy or not. Is there any reason not to do it this way?

4) Is there a standard way to compensate for latency? I don't think it will be an issue (I haven't implemented any gameplay yet), but maybe there's something I should know in advance.

5) I plan to assign an ID number to each client. Should I recycle the IDs of disconnected players? I used to mod a game called Savage 2 and I noticed that game didn't recycle them, so I was wondering if there's any particular reason why I would want to not do that.

Thanks!

Keyboard Layout adapting

30 December 2012 - 10:59 PM

Hi. In my game, I plan to have a grid painted on the screen where each cell corresponds to a letter, in the same position at they appear on your keyboard. However, it crossed my mind that player using different keyboard will need different letter positioning.

I use a QWERTY keyboard, so the Q would normally be on the top-left corner of the grid. If a player was using AZERTY, for example, the Q shouldn't be on the top-left anymore. How can I change the position of the letters depending on the player's keyboard layout (just being able to detect the layout would be great)?

Please don't suggest that I ask the user to manually input each key.

Online Example help

29 November 2012 - 09:17 PM

Hello. I'm trying to start working on an online game, but so far I haven't even been able to get any pre-made examples to work over the Internet. The last time I asked about this I was told that Game Maker's native multiplayer functions were completely broken. However, I recently tried it with a 39dll example and got the same results. I edited the example, but I only changed the hard-coded IP adress (which was set to be local) to a get_string(). Here's exactly what I'm trying:

- I get my IP adress from www.whatismyip.com
- I run an executable made from the Server.gm81 file
- My mate runs an executable made from the Client.gm81 file
- He introduces my IP
- "We coudn't connect to the server, want to retry?"

This also happens when I try to run the Server and Client on my computer, when I introduce my IP. The only way for it to work is if I introduce the Local IP. I know next to nothing about networks, by the way. So yeah, I have no idea of what I'm doing, would you help me out?