GameMaker 2.3 Beta now has Structs - lightweight objects.

Started by Amon, April 29, 2020, 17:25:11

Previous topic - Next topic

Amon

I'm on the beta team and loving the new Structs system so far.


function vect2(_x,_y) constructor{ x = _x; y = _y; function add(_other) { x += _other.x; y += _other.y; } } vec1 = new vect2(5,5); vec2 = new vect2(2,3); vec1.add(vec2);

I have no idea why the code tags put the code all on one line.

Xerra

M2 Pro Mac mini - 16GB 512 SSD
ACER Nitro 5 15.6" Gaming Laptop - Intel® Core™ i7, RTX 3050, 1 TB SSD
Vic 20 - 3.5k 1mhz 6502

Latest game - https://xerra.itch.io/Gridrunner
Blog: http://xerra.co.uk
Itch.IO: https://xerra.itch.io/

xaby

Makes it any difference?

Could you create an object and put there all your variables into, but it would be invisible or had no collision and no sprite
Is it somehow faster or makes it thinks easier?

Sledge


round157

Hello....

I have two questions:

1. Is GameMaker Language as good as BlitzMax NG?
2. Is there any successful game made with GameMaker Studio?

Thanks a lot.

plenatus

@Amon: I have one question too. ;)
I´m in the beta channel too.IDE wise.
But the last beta ist one version before my actual version.
How to get 2.3?
Or is that a special beta team?

Amon

Quote from: c0d3r9 on April 29, 2020, 22:20:27
@Amon: I have one question too. ;)
I´m in the beta channel too.IDE wise.
But the last beta ist one version before my actual version.
How to get 2.3?
Or is that a special beta team?
Special beta team. :) You could try to apply by contacting them but others have tried and have been declined.
Methods? Yes it does have those. Scripts have completely changed, also and are global by default and must start with the function keyword.

plenatus


Xerra

Quote from: round157 on April 29, 2020, 22:11:17
1. Is GameMaker Language as good as BlitzMax NG?

That's subjective. I'd say yes, though. I like working with the code side on GMS 2. Probably because i'm old school. Some people can make cracking games with the minimum amount of actual code, though. Not me.

Quote from: round157 on April 29, 2020, 22:11:17
2. Is there any successful game made with GameMaker Studio?

Somewhat:

https://www.yoyogames.com/showcase
M2 Pro Mac mini - 16GB 512 SSD
ACER Nitro 5 15.6" Gaming Laptop - Intel® Core™ i7, RTX 3050, 1 TB SSD
Vic 20 - 3.5k 1mhz 6502

Latest game - https://xerra.itch.io/Gridrunner
Blog: http://xerra.co.uk
Itch.IO: https://xerra.itch.io/

round157

Quote from: Xerra on April 29, 2020, 23:57:29
Quote from: round157 on April 29, 2020, 22:11:17
1. Is GameMaker Language as good as BlitzMax NG?

That's subjective. I'd say yes, though. I like working with the code side on GMS 2. Probably because i'm old school. Some people can make cracking games with the minimum amount of actual code, though. Not me.


Hello, thanks for your answer!!! :)