Gaming and other programming languages chat thread

This is the place for video games!
Gobi
Cheep-Cheep
Cheep-Cheep
Posts: 11
Joined: Sun Apr 29, 2018 1:53 am

Gaming and other programming languages chat thread

Postby Gobi » Wed May 09, 2018 12:49 am

http://docs.yoyogames.com/
teaches GML (Game Maker Language) very very well.



What codings
are the its version of its GML counterpart?


For example if to do if (place_meeting(x+57,y,(100013))) in C++ is
if (meeting_at_a_place(x+57,y,instance_with_a_unique_id(100013)))
you would type something like


GML version of place_meeting:

Code: Select all

if (place_meeting(x+57,y,(100013)));

C++ version of place_meeting

Code: Select all

if (meeting_at_a_place(x+57,y,instance_with_a_unique_id(100013)))

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9491
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Gaming and other programming languages chat thread

Postby Enjl » Wed May 09, 2018 4:04 am

I don't think either of these lines is valid.... they state a condition, but never continue it.
That being said,if you were to use C++ you wouldn't we working with a global pool of arbitrary IDs. You would also have to specify which object the x and y coordinates belong to, unless they're global static variables.
GML is a pretty oddball language. It's easy to get into, but doesn't exactly teach many good practices or things you will see mirrored in other languages. Most prominently is its absense of proper booleans.


Return to “Video Games”

Who is online

Users browsing this forum: No registered users and 1 guest