dop2000's Forum Posts

  • 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.

  • How can anyone answer your question if you didn't provide any details and didn't share your project file?

    Was it working before? If yes, what has changed? Are you using any addons?

    In preview press F12, open console and see if there are any error messages.

  • As Renfd said, disable "Use worker" in project properties.

    I'm using this plugin and it works, but you need to disable the worker option!

  • newt I believe op's question was more about how to detect the area with the largest number of instances.

    Here is my attempt:

    dropbox.com/s/hnhxmtscttgu461/ScrollToBiggestGroup.c3p

    If you have exact areas where you know your sprites will be gathering (like those pits in my demo), this can be done much easier. You can put invisible blocks there and simply count the number of sprites overlapping the block, and move the camera to the center of the block with most overlapping sprites.

  • So where are all these sounds located? Are they on your server? Can you upload them into the folder with your exported game? If you can, then you will be able to simply play them by name.

  • The hierarchy of events is wrong. Look at my screenshot - events 9-12 are sub-events, they need to be located inside the event 8.

  • I don't recommend using TextInput object, there are too many problems with it. It's easy to make your own text input, see this demo:

    dropbox.com/s/wj1vpn641t7mjct/SpritefontWithBlinkingCursor.capx

    You can compare if variable t="knock" when Enter key is pressed, and then open the door.

  • c3p is a zip archive with assets and some json files. Quoting Ashley:

    Use "Save as project folder" menu option.

  • X2 and Y2 are current touch coordinates. X1 and Y1 are touch coordinates from the previous tick. You can save them in a pair of variables, or use helper sprites DOT1 and DOT2, like in that tutorial link I posted.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can do this: