dop2000's Forum Posts

  • If these numbers are associated with object instances, it's easier to pick instances directly. For example, if you need to pick a random playing card - put all cards on the layout, pick one at random. Once you picked the card, mark it as used (set instance variable). Next time pick a random card excluding used:

    Card isUsed=false
    System pick random Card
    
  • Save selected index in a variable. When player returns to this layout, use "List Set selection" action with saved index.

  • So you want to quickly copy values from instance variables into global variables, for any instance? The easiest way I guess is to create a function. You will still need to add an action for each variable, there is no way to cycle through all variables in a loop. (at least not possible with events, you can do this with scripting)

    If you have too many instance variables, like a hundred or more, consider using a linked dictionary instead.

  • Like this?

    dropbox.com/s/lhrwer9zr0xudb7/PlatformCar.c3p

    Both wheels have platform behavior and connected with pin. It's not a good solution and will only work if the terrain doesn't have big drops, jumps etc. You can make the drive smoother if you don't rotate the wheels. (Make them invisible and pin a different rotating/animated sprite to them)

    A better way of doing this is with physics, here is a simple demo:

    dropbox.com/s/t9qddhf8q85270j/CarPhysics.c3p

  • You do not have permission to view this post

  • You can right-click the object name and choose "Select all in the project".

    If you have an instance on a "storage" layout, you can quickly change its properties this way. But of course, if you have multiple instances on different layouts, you need to be careful, as changes will be applied to all of them.

  • Really, contents? Encoded in base64 format? There is an addon that allows playing audio from base64 string, you can find it here.

    Or did you mean URLs are stored in the xml file?

  • ACCES-Mathieu Lots of images and links from old posts have disappeared.

    Try this effect:

    construct.net/en/forum/extending-construct-2/effects-31/request-drop-shadow-plus-124707/page-3 I

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The easiest method:

    player set scale to unlerp(-200, 700, player.y)

    Where -200 is the y-coordinate where the player size will become 0, and 700 is the y-coordinate where it's scale is 1. Of course, you'll need to find your own values.

    You can also wrap it in clamp to prevent the player from becoming too small or too large.

    clamp(unlerp(-200, 700, player.y), 0.5, 1.1)

  • In C3 Set Color effect takes only one parameter, which contains all three channels. So use rgbEx255(r,g,b) or rgba255(r,g,b,alpha) expression.

    Instead of the effect you can also use "Sprite -> Set color" action.

  • CAPX Change magnitude and direction of a swinging rope (useful for making a grappling hook)

    CAPX Climbing a moving/swinging rope (for example in a platform game)

  • All examples I've seen were made with physics and joints. This is not an easy task for a beginner.

    I believe you can do this with Sine behavior. I don't have a complete solution, but you can find a couple of demo projects which can help in this comment:

    construct.net/en/forum/construct-3/general-discussion-7/collection-demo-projects-149701

  • There is no "Is overlapping point" condition.

    Actually, there is - "System pick overlapping point".

    Variable counter=0
    Repeat 4 times
     System pick Box overlapping point (Sprite.ImagePointX("Point"&loopindex), Sprite.ImagePointY("Point"&loopindex))
     	Add 1 to counter
    
    If counter=4 
    	Set text "All 4 boxes are correctly placed"
    
  • Your code looks fine. Have you tried another phone?

    Test if multitouch works on this device, there are many apps and websites for that.

  • Exactly as jobel explained in the previous comment, instances on a "ObjectBank" layout work as "blueprints". When you create a new object instance in runtime, Construct needs to get object properties (angle, size, opacity etc.) from somewhere. If there are no instances for this object in your project, Construct will not be able to read these properties and will fail to create a new one.

    That's why the common practice is to have a separate unused layout as a storage for default instances.

    Of course, you don't need to dump everything on this layout, only the objects which don't exist on other layouts and which you are planning to create in runtime.

    Edit: I guess your question was more about "how Construct engine can read these properties from another layout, but I can't do this with events"? I don't know.