linkman2004's Recent Forum Activity

  • I don't know if this is in the latest stable version, but this has actually been a feature for a while now(I coded it, in fact). Here's the latest version of the plugin, or you could download the latest "unstable" release of Construct.

  • When serializing the data in a vector you need to serialize the size of the vector and then loop through and serialize separately each element. Here's an example:

    // RUNTIME serialization
    void ExtObject::Serialize(bin& ar)
    {
    	if (ar.loading) {
    
    		// Load vector size
    		int vectorSize;
    		ar >> vectorSize;
    
    		// Temporary string to hold the loaded element
    		CString tempElement;
    
    		// Load each vector element
    		for (int i = 0; i < vectorSize; i++)
    		{
    			ar >> tempElement;
    			myVector.push_back(tempElement);
    		}
    
    	}
    	else {
    
    		// Save vector size
    		ar << (int)myVector.size();
    
    		// Loop through the vector and save each element
    		vector<CString>::iterator i = myVector.begin();
    		for ( ; i != myVector.end(); i++ )
    		{
    			ar << *i;
    		}
    
    	}
    }[/code:13klpbmo]
    I hope this helps.
  • I could be wrong, but I don't think Construct uses a specific color for transparency. Normally you should load images that already have an alpha channel; for example, PNGs.

    However, you can get rid of the background around that art by selecting the outside part with the magic wand tool and deleting it.

  • I wonder if is possible to do in top down view race game, that camera follow the car like in 3d games.

    Like from behind? You can't do that, the camera is limited to two dimensions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can't you just drag the condition to be a subevent?

    That's an event, he wants to drag a condition out of an event and place it in a new sub-event.

  • I've been considering giving this a go lately, although learning Winsock is currently a roadblock as there's not much in the way of decent tutorials for it, nor are there any other decent networking libraries that I can find.

  • Try looking into the "Instance hit" option with the bullet behavior. I'm not able to make an example right now, but if you need one I can pull one together later. The wiki-page for the bullet behavior should be able to give you a good idea of how it works, though.

  • Put all of your music and sound files in the "Files" folder.

  • Since I'm more skilled with C++ now I'll look into it again. It might not be too tough to do what you need. No promises, though.

  • The hotspot on your physics sprite needs to be centered for collisions to work properly. You'll have to compensate for new hotspot to get the sprites lined up with the backgrounds, but that's pretty easy:

    X: TiledBackground.X + TiledBackground.Width / 2

    Y: TiledBackground.Y + TiledBackground.Height / 2

    I hope this helps.

  • Are you using any third-party plugins? My Advanced Camera object is known to have this problem.

  • You need to specify a name for the file to download into. So for example, if you wanted to download your avatar to the harddrive as "avatar.png", your "Download to file" action would look something like this:

    URL: "http://www.thomasmahler.com/images/avatar_heavy.png"

    Local file: "C:/avatar.png"

    I hope this helps.

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