Thread: C++ place_meeting help please, thank you

  1. #1
    Registered User
    Join Date
    Apr 2012
    Posts
    6

    Talking C++ place_meeting help please, thank you

    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))
    {
      vspeed = 0;
    }
    ^ So what is the C++ of ^ (
    Code:
    if (place_meeting(x+arctan(14),y,object))
    {
      vspeed = 0;
    }
    ) please, thank you ; ) : )

  2. #2
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,088
    Well, assuming you have the appropriate libraries available:

    Code:
    if (place_meeting(x+arctan(14),y,object))
    {
      vspeed = 0;
    }
    Soma

  3. #3
    Registered User
    Join Date
    Apr 2012
    Posts
    6
    So unlike Game Maker I would need library(ies) to be able to check
    Code:
    if (place_meeting(x+arctan(14),y,object))
    {
      vspeed = 0;
    }
    ?

    If yes where do I get the library(ies) please? Thank you.

  4. #4
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,088
    No one here knows what you are doing.

    We can only assume based on the names involved.

    "GML" is a different thing than C++.

    I don't know what facilities "GML" makes available to programmers, but being a game maker, it almost certainly includes a lot.

    C++ does not include a lot of facilities; it includes almost none actually.

    If you have set out to "port" a game from "GML" to C++, you should just go ahead and make the "wahwahwahhhhh" sound while shrugging because you've done something comically silly.

    If you want to make a game in C++, be prepared for a lot of hard work and study.

    Soma

Popular pages Recent additions subscribe to a feed