linkman2004's Recent Forum Activity

  • Very nice. To help me understand this a little better, would you mind me asking the difference between "Window.ClientX" as apposed to "Window.X"? I noticed the results were a hair off when I switched them, but it was pretty much the same.

    Window.X gets the position of the window including the border and title bar, while Window.ClientX gets the position of the content of the window, which excludes the border.

  • Alright, i've gone through with a debugger and it seems that at least some of the problems are due to heap corruption related to std::string. Why this is happening only in cases concerning the SFML library, I have no idea. Maybe somebody could help me out with this if I were to supply the code?

  • Any details on the wonkyness?

    Things like packet corruption and crashing if you do things a certain way. These problems don't happen when the client is a C++ application, so I don't know what's up.

  • There definitely are libraries for networking around - you could have a look at SFML for example, which has an OOP layer over TCP and UDP sockets, which should make things a bit simpler. You'll probably still be working with raw bytes and addresses though - might want to find a higher level library.

    I've been messing around with the SFML network library lately and it seems solid. It's definitely easier than straight up Winsock, and its Packet class greatly simplifies data transmission.

    However, it gets really wonky whenever I try using it within a Construct plugin, which leads me to believe that something within the SDK is screwing it up to the point that it's useless.

  • Hey guys, you showed us the 3d object progress, but maybe you upload source for it?

    It's already up on the SVN for your viewing pleasure.

    3D Object Source

  • Your blue tank image doesn't have a collision mask, so there's no way for the M&K object to know if the mouse is over a tank when you click it, or for your units to know if they're overlapping each other.

    To add a collision mask, open up your blue tank sprite; now click on the "Collision mask" button on the top toolbar(it's the green icon second from the right) - As you can see, the collision mask is empty; now, just fill in the area with a solid color for the collision mask and you have working collisions again! Just press the "Collision mask" button again to close the editor for it.

    Hope that helps ya.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I'm assuming that you probably upgraded your version of Construct to a newer version. Global variables are now in the "Global variables" folder in the "Project" bar on the right. You can see all of your global variables there and add new ones by right clicking the folder and clicking "Add global variable".

  • For the first question, you can use the function object to do what you're asking. I don't have time to give a rundown of how it works right now, but it should be pretty easy to figure out.

    As for the second question, you're going to have to rewrite all of the code you did. While it may be a pain in the butt, Construct's abilities in that regard are somewhat limited, so there's not a whole lot of choice.

  • Your file is borked over here too, and since all my drivers and what-not are up to date, it seems that either your file got messed up, or it's a problem in Construct.

  • Moved to "Help / Tech Support".

  • There are movement plugins on the forum, just look for them.

    I don't think we're at the point where whatever plugin you want exists, especially behaviors.

    How do you mean for a behavior like this to work? Like the 8-direction movement but with more directions? If somebody were to take this on, they'd need more info.

    Also, welcome to the forums.

  • In the project bar, just click and drag whatever layout you want to open first to the beginning of the layout list.

linkman2004's avatar

linkman2004

Member since 15 Jan, 2008

Twitter
linkman2004 has 1 followers

Trophy Case

  • 16-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

18/44
How to earn trophies