Asset - Extension Arduino DLL

Does anyone know if this can work with mac version of gamemaker and if not... will i have to create my own new extension. ?

reason: I want to be able to send some data from the game in gamemaker to my arduino for some physical outputs.
 

Buff

Member
Does anyone know if this can work with mac version of gamemaker and if not... will i have to create my own new extension. ?

reason: I want to be able to send some data from the game in gamemaker to my arduino for some physical outputs.
This extension will not work on Mac, it is for Windows only. You'd have to create a new Mac extension if you want to talk to an Arduino on Mac.
 

Kyon

Member
Arduino now a days can setup as a gamepad, and GMS2 recognizes that.
(I believe you have to set the output to something like "Keyboard + Mouse + Gamepad + Serial")

I did it a while a go, made a "controller" out of 3 sonar sensors, made a little algoritmic sound-game in it. Here is a video:
 
Arduino now a days can setup as a gamepad, and GMS2 recognizes that.
(I believe you have to set the output to something like "Keyboard + Mouse + Gamepad + Serial")

I did it a while a go, made a "controller" out of 3 sonar sensors, made a little algoritmic sound-game in it. Here is a video:

yes it can. using an arduino for INPUT to gms2 is easy. Im already doign that no problem.
I want to OUTPUT to arduino to a specific set of hardware.

Not to worry. Ill build the extension myself and then chuck it up for others.

If i cant be bothered ill use the shell extension to execute a mini executable app that i can code in processing that will talk to the arduino instead. bit long winded but will work.
 
Arduino now a days can setup as a gamepad, and GMS2 recognizes that.
(I believe you have to set the output to something like "Keyboard + Mouse + Gamepad + Serial")

I did it a while a go, made a "controller" out of 3 sonar sensors, made a little algoritmic sound-game in it. Here is a video:
btw - thats lovely :)
 

LilRony

Member
Hi, I'm working with an Arduino Leonardo and I'm trying to simply write a bitstring (eg "011") to the arduino, and use that string to turn on lights 0-2.
But I can't seem to get a connection with arduino_create(). When I exit out of the game, the compile window says "ERROR!!!Compile finished ..."

Do you know if this extension works with the Leonardo chip? My suspicion is that it doesn't, because I didn't have very hard of a time with my Uno.
 

ID3

Member
yes it can. using an arduino for INPUT to gms2 is easy. Im already doign that no problem.
Please, can You tell me what exactly You did in game maker to receive it? I have a project stuck, and trying to get a variable from Arduino. This would help a lot.
I guess I'm not experienced enough at the moment with extensions or other (than GML) languages. Or is it something you do on Arduino and GM:S2 gets it with gamepad commands?

Thank You!
 
Hello everyone! Can someone explain how to use it now? I would like a description of the functions.

I can’t even get connected to the arduino. The connection id is always -1. Port and baud are specified correctly.
 
Partially solved the problem. The port was occupied by the console from the Arduino IDE. But who can write detailed instructions on how to use the functions?
 
Top