Like Tree1Likes
  • 1 Post By phantomotap

C++ place_meeting help please, thank you

This is a discussion on C++ place_meeting help please, thank you within the C++ Programming forums, part of the General Programming Boards category; N. USA = North United States of America & = and My name is Jason & I am from N. ...

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

    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
    4,165
    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
    4
    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
    4,165
    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
    rags_to_riches likes this.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21