LittleStain's Forum Posts

  • Sounds very simple indeed..

    Could you explain what fall damage is in your opinion?

  • You mean like adding a trigger once to the gamepad events?

  • The example actually only uses 2 images instead of the 24 images needed for your animation..

    If Image memory is not a problem and you dont want more than 24 options (rotating the sprites like in the example would ofcourse give infinite angle possibilities) you should be fine..

  • As explained in the manual, Global variables are NOT reset, so without seeing your events we can only guess why your actions are not triggered..

    Restart layout

    Restart the current layout. Note that unlike Go to layout, this action resets all event groups to their initial activation state. Global variables keep their current value - they are not reset. To reset them use the system action Reset global variables.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When would it bend?

    Could it be solved with animations?

  • you can change the size of the I-frame inside construct, the size of the image itself you should set in the html..

  • Ever heard of responsive design?

    It's possible in Construct2.

    A lot is already done automatically by the scaling modes actually..

    Adding a HUD with 0,0 paralax, using anchors and setting widths/position based on viewportwidth and viewportheight and you're ready..

    I usually use crop for fullscreen and code the whole visual layout, but you can get very far just using all built in options..

  • Reset global variables before restarting layout?

    Or add an action to the - on layout start event to get everything te way you'd like?

  • I'm unable to open your capx, seems to be something wrong with the "sprite"-plugin (Did you edit it?)

    You can't change the origin of the sprite, but maybe you could calculate the offset of mouse.x,mouse.y to the origin on mouseclick and use that as your center for zooming?

  • For sounds there is the option to preload, this should work..

    If you have big sound files it might be better to add them as music files, so they are streamed instead of completely in memory..

    I thought this was all pretty well explained in the manual..

  • -event

    • create pipes at (x,y)
    • create collisionsprite at pipes.x, pipes.y-offset
    • create collisionsprite at pipes.x, pipes.y + offset

    collisionsprite on created

    collisionsprite is overlapping pipes

    • system wait 0
    • collisionsprite pin to pipes

    Not sure if the wait 0 is nescessary, but pinning can have issues..

    the offset is offcourse the amount the collisionsprites have to move up or down compared to the y position of the pipes-object

  • Something like this should work..

    Maybe you'd have to pick by animationframe and compare pickedcount, but the basics are the same..

    Ninjaa'd by R0J0hound

  • Not working - again.

    Plugin list:

    EDIT: BTW where did you select crosswalk version? You said that i have to select 12, but i don't see it anywhere. There is "Crosswalk routine" and it's set to version 15.

    EDIT2: I added text object inside my app to show url and filename of selected photo. That's working nice, but for some reason it can't load image inside sprite. Also i can't download Canvas Snapshot to my phone.

    ALL THIS FUNCTIONS WORK INSIDE CHROME IN PREVIEW MODE, BUT NOT WHEN I BUILD THIS APP

    I only found this on the forum, didn't write it myself..

    Only thing I can imagine is that if the url is showing correctly, there's something wrong with the permission..

    A bit like cross-domain requests in Ajax, but if your permissions are set correctly, I'm not sure..

  • Found this somewhere on the forum:

    If you have same problem, follow these steps carefully:

    1. Export your project to cordova, don't forget to select "Uses Camera" and "Uses Media" under permissions window

    2. Open latest build Intel XDK, and import your project. Use cordova plugins: YES

    3. Click PROJECTS button on the top left window in the intel XDK project window.

    4. In the CORDOVA HYBRID MOBILE APP SETTINGS tab, select plugins:

    - Camera

    - File

    - Media

    5. In the Build settings you can use crosswalk version 12 or anything else, it's up to you

    6. Now in the Build tab, Build your project in the Crosswalk for android.

    7. Done

    If you following these steps carefully, then you'll not get any error when opening file chooser in the android device. You can open and select image from gallery, uses front or rear device camera, uses dropbox and anything else.