I know there are loads of collision detection questions in this forum, but they don't cover my problem.
Basically, when there are two platforms with the exact x and y coordinates but different z coordinates, my character should be able to land on the appropriate platform depending on where he is.
Unfortunately, game maker's collision detection seems to only return one of the collisions when there are multiple. Is there anyway I can check for all collisions with the character? If not, is there a way around this problem?
Many thanks in advance,
-m
EDIT: by the way, I have 7 registered.
- Game Maker Community
- → Viewing Profile: Topics: FireCaller
FireCaller
Member Since 13 Oct 2006Offline Last Active Jun 06 2010 03:19 AM
Community Stats
- Group New Member
- Active Posts 17
- Profile Views 333
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
0
none
Topics I've Started
Multiple Collisions Problem
13 April 2009 - 03:00 PM
39dll Udp
13 January 2009 - 01:01 AM
Let me start by saying that I am totally fine with using TCP in my programs. I just have no idea how to use UDP. I tried reading the udp tutorial that came in the 39dll.zip, but I couldn't understand exactly what was going on, and when I tried to replicate it, I had no luck.
In my program, the server will communicate with clients using TCP and the clients will communicate with the server using both UDP and TCP. I have the TCP set up, but I have these questions about the UDP scripts...
value = udpconnect(port);
This one, I'm totally at a loss for.
1) Do both the clients and the server need to do this?
2) Does the client need to do this each time it gets a new client?
3) What is <value> used for once this is called?
sendmessage(sock,ip,port); (Only used by clients)
I figure the ip and port are of what ever computer you are sending the message to, but...
4) What value should I put into <sock>?
receivemessage(sock); (Only used by host)
5) Again, what should I put in <sock>?
6) How do I get messages from different clients? This isn't like tcpaccept() where you get a different value for each...
Any help is much appreciated. I'm a quick study, so that shouldn't be a problem; I just got a little overwhelmed.
And sorry if there was already a thread. Everything I found was a variation of:
My udp won't work! Help plox!
You have to open ports in your router...
Kk thanx
In my program, the server will communicate with clients using TCP and the clients will communicate with the server using both UDP and TCP. I have the TCP set up, but I have these questions about the UDP scripts...
value = udpconnect(port);
This one, I'm totally at a loss for.
1) Do both the clients and the server need to do this?
2) Does the client need to do this each time it gets a new client?
3) What is <value> used for once this is called?
sendmessage(sock,ip,port); (Only used by clients)
I figure the ip and port are of what ever computer you are sending the message to, but...
4) What value should I put into <sock>?
receivemessage(sock); (Only used by host)
5) Again, what should I put in <sock>?
6) How do I get messages from different clients? This isn't like tcpaccept() where you get a different value for each...
Any help is much appreciated. I'm a quick study, so that shouldn't be a problem; I just got a little overwhelmed.
And sorry if there was already a thread. Everything I found was a variation of:
My udp won't work! Help plox!
You have to open ports in your router...
Kk thanx
Serial Ports Anyone?
30 November 2008 - 05:55 PM
Ok, so this is a strange problem, and I doubt anyone here will have an answer for it:
I am using RS232DLL (the extension, not the actual dll) to connect to my iRobot (I call him Buddy ♥). For the most part, everything works fine. The problem is that at first, my robot does not respond at all. Then, I close down the gamemaker program that sends the commands and open a program called "RealTerm". RealTerm is basically a program used for sending information through serial ports. As soon as I open RealTerm, I close it again and open my gamemaker program. Then, like magic, it works! My robot follows all of the commands that it previously ignored!
I am using RS232DLL (the extension, not the actual dll) to connect to my iRobot (I call him Buddy ♥). For the most part, everything works fine. The problem is that at first, my robot does not respond at all. Then, I close down the gamemaker program that sends the commands and open a program called "RealTerm". RealTerm is basically a program used for sending information through serial ports. As soon as I open RealTerm, I close it again and open my gamemaker program. Then, like magic, it works! My robot follows all of the commands that it previously ignored!
Binary File Trouble
06 November 2008 - 03:05 AM
___________________________________________
ERROR in
action number 1
of Mouse Event for Left Released
for object objClient:
Cannot open another file (maximum exceeded).
I know that the first thing everyone will tell me is to check to make sure I close all my files after dealing with them. Let me say first that I only use the file_bin_open(); command once in my entire program. So I highly doubt that is the problem. This is the script that I use the function in:
[codebox]//Open a file to send to the client represented by this object.
file = file_bin_open("Test",0);
//Get the size of the file.
size = file_bin_size(file);
//Clear the buffer before filling it with the file.
clearbuffer();
//Write the size of the file to the buffer.
writebyte(size);
//Write each byte of the file to the buffer.
for(b = 0; b <= size-1; b += 1)
{
writebyte(file_bin_read_byte(file));
}
//Close the file.
file_bin_close(file);
[/codebox]
It's a little complicated because I use 39dll functions. The one thing I've found out is that the error only pops up with large files. I haven't found the dividing line, but 2 kilobytes is small enough and 100 causes an error. Is it possible that GameMaker opens a large file in chunks, as if it were several smaller files?
I appreciate the help and I am sorry if I am not more helpful myself.
-Matthe
ERROR in
action number 1
of Mouse Event for Left Released
for object objClient:
Cannot open another file (maximum exceeded).
I know that the first thing everyone will tell me is to check to make sure I close all my files after dealing with them. Let me say first that I only use the file_bin_open(); command once in my entire program. So I highly doubt that is the problem. This is the script that I use the function in:
[codebox]//Open a file to send to the client represented by this object.
file = file_bin_open("Test",0);
//Get the size of the file.
size = file_bin_size(file);
//Clear the buffer before filling it with the file.
clearbuffer();
//Write the size of the file to the buffer.
writebyte(size);
//Write each byte of the file to the buffer.
for(b = 0; b <= size-1; b += 1)
{
writebyte(file_bin_read_byte(file));
}
//Close the file.
file_bin_close(file);
[/codebox]
It's a little complicated because I use 39dll functions. The one thing I've found out is that the error only pops up with large files. I haven't found the dividing line, but 2 kilobytes is small enough and 100 causes an error. Is it possible that GameMaker opens a large file in chunks, as if it were several smaller files?
I appreciate the help and I am sorry if I am not more helpful myself.
-Matthe
Routers And 39dll
29 January 2008 - 09:29 PM
I'm guessing something happened mid-way through submitting that caused this to not show up? Maybe it could be deleted.
- Game Maker Community
- → Viewing Profile: Topics: FireCaller
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content