dop2000's Forum Posts

  • The way you are building the s string is wrong. If you want to add 3 parameters, you should do it like this:

    Set s to web_app_url
    Set s to s & "?email=" & URLEncode(EnterEmail.Text)
    Set s to s & "&full_name=" & URLEncode(EnterName.Text)
    Set s to s & "&message=" & URLEncode(EnterMessage.Text)
    

    Pay attention to ? and & characters!

    Move s variable to global level. Run the project in debug mode and check the contents of s variable, it should look like this:

    https://script.google.com/macros/s/alsdjalksdjaldskjaldskjaldskjalsdkslkdj/exec?email=abc%40gmail.com&full_name=John%20Doe&Message=bla%20bla%20bla
    

    .

    Also, change parameter names in the script in lines 33-35, they should be the same as in URL, and not contain any spaces. So change them to "email", "full_name" and "message".

  • Your post says "bubbles" :) If you want something like "marbles in a bowl" effect, then it's quite easy to do with physics. Disable gravity, set "collision mask=circle", and on every tick apply a small force to each marble towards the center.

  • Maybe because I rotated the image inside of the sprite, and the sprite itself on the layout by 90 degrees.

  • You mean you want to limit rotation? See this example:

    dropbox.com/s/tptx0gjlyh1t1vu/steeringWheel.capx

  • I don't think it's possible. Why do you want to change it? Layout size is mainly used for scrolling and in behaviors like Bound to Layout, Destroy Outside of Layout. You can add a pair of variables (LevelSizeX, LevelSizeY) instead and do scrolling and other things with events.

  • This is not an easy task. See this post, there are some cool examples:

    construct.net/en/forum/construct-2/general-discussion-17/can-we-make-natural-effect-lik-139909

  • In C2 start a New Project and in the list of templates select "Example: Webcam". There is a button that snaps an image from the camera and loads it into a sprite.

  • Sprite Load Image from URL -> UserMedia.SnapshotURL

    Image will be loaded into the current frame. You can resize it in "On image loaded" event if needed.

  • You can use Drawing Canvas - resize and position it, and then paste the sprite onto the canvas. You can then load the image back into the sprite if you want. (Canvas Save image, then Sprite load image from URL Canvas.SavedImageURL)

    Another option is to use blend mode to make edges of the sprite invisible.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use File Chooser to select a file. Then on use FileChooser On Changed event do Sprite Load image from URL, where URL= FileChooser.FileURLAt(0)

    Then on Sprite Image Loaded event you can resize it if needed. Note, that if you want to load multiple images, you need multiple sprite objects, or one object with multiple frames. The image is loaded into the current frame.

    I'm not sure about cropping. You can "crop" part of the image with Canvas or Paster addon. You can also load image directly into Canvas/Paster skipping the sprite.

  • You can check if each piece is on the correct grid tile. Something like this:

    SpriteFont on Drop
    
    .Local variable correctPieces=0
    
    ...System select All SpriteFont
    ...System for each SpriteFont
    
    .......Grid compare X = SpriteFont.x
    .......Grid compare Y = SpriteFont.y
    
    ...........System compare two values Grid.IID=SpriteFont.IID 
    .................Add 1 to correctPieces
    
    
    ...System compare variable correctPieces=25 -> game over
    
  • It should be possible, you can request data with AJAX from your server, load images into sprites etc. But you are probably right, this may now worth the effort since you already have everything working in iframe.

  • You can use wait in functions, just don't try to access Function.param(n) after the wait.

  • I'll upload my modified pathfinder later for those interested under another name

    That's exactly what Scirra is trying to prevent, and the reason why they hid the source code of plugins and behaviors :)

    If you have an idea on how to improve the official pathfinding behavior, you need to post it here:

    construct3.ideas.aha.io/ideas

  • Well, I haven't tried it with iframes. I know this trick works with buttons, check boxes and other form controls. I tried a few examples from this page, but none of them worked for me.

    Do you really need the iframe? You can do image carousel in Construct:

    construct.net/en/tutorials/how-to-create-carousel-animation-in-construct-2-1252