C++ and Game Maker Language place_meeting help - Printable Version +- The VG Resource (https://www.vg-resource.com) +-- Forum: Archive (https://www.vg-resource.com/forum-65.html) +--- Forum: July 2014 Archive (https://www.vg-resource.com/forum-139.html) +---- Forum: Other Stuff (https://www.vg-resource.com/forum-6.html) +----- Forum: Questions, Info, and Tutorials (https://www.vg-resource.com/forum-89.html) +----- Thread: C++ and Game Maker Language place_meeting help (/thread-20237.html) |
C++ and Game Maker Language place_meeting help - ZeldaClassicEXPERT - 04-30-2012 N. USA = North United States of America & = and My name is Jason & I am from N. USA & I live in N. USA & I was born in N. USA Here is Game Maker Language (GML) version: Code: if (place_meeting(x+arctan(14),y,object)) Code: if (place_meeting(x+arctan(14),y,object)) RE: C++ and Game Maker Language place_meeting help - Previous - 05-05-2012 I don't care where you are from C++ is no language crafted specifically for game creation. Thus, you won't find such a function. However, depending on whatever premade engine you ight want to use, they might feature something similar. I'm pretty sure there are tons of game making engines for C++. I can't point you to anything specific, though. Basically, in C++, you'll need to make a base class for your game objects which has all basic properties like x and y position as well as width and height. Then you can make a function which checks if a given point is within an objects boundaries. Note that the basic object class of C++ does not include the advanced specific properties a GML object has. Generally speaking, if you want to recreate your given GML code in C++ without using an engine made by someone else, you're gonna have a bad time. |