LittleStain's Recent Forum Activity

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, so the answer you were waiting for:

    I guess the pinning doesn't work, because you don't have any event/actions pinning the objects..

    How do you get them to overlap on created?

    Create the two instances of the collider-object at the same time you create the pipe, position them so they overlap at the right position and pin them.

  • Just add a "system wait 0" action before the pinning action..

    That way the pinning is delayed untill after the tick, when all objects actually exist..

  • Making it 1 sprite instead of two, so you have to pin 2 sprites to it..

    Ah..

    Sounds logical..

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies