krls's Forum Posts

  • 15 posts
  • I hope I'm not too late to the party, but is it possible to install this on Coccon when eporting an apk (and how!)?

  • I was under the impression there was a free outdated version of it D:

  • Just call the Cordova Powermanagement Action "Acquire Screen" on start of your layout.

    This will keep the screen from going into standby.

    But keep in mind to install this cordova plugin to your Cocoon project or whatever build tool you use.

    <plugin name="https://github.com/cranberrygame/cordova-plugin-powermanagement" />[/code:2tc1mtzk]
    

    Ignore my last post! I created the thread because I couldn't find the plugin to install on C2, the link to the download is dead on its oficial site (is a dropbox link).

  • But keep in mind to install this cordova plugin to your Cocoon project or whatever build tool you use.

    <plugin name="https://github.com/cranberrygame/cordova-plugin-powermanagement" />[/code:3ezp7re9]
    

    This is where I'm stuck, I'm not exactly sure how to do this, but I'll try waht you posted here.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try creating a transparent sprite for a single frame that goes from the gun to the edge of the screen (and as wide as you see fit) in the angle the gun is pointing, and check for collision on that instead.

  • If you could figure it out that would be great, I'll light up some candles for you!

  • Please forum, you are my omly hope (amd this is my last try!).

  • Every time a player fails the level you add 1 to the number of tries on that level, right below it on the same event, do a global variable 3 = global variable 1 + global variable 2.

  • Is there a Family "Enemies"?

    I think you can do:

    Object | Has Line of Sight to "Enemies" (Right click -> Invert) : Do something.

  • Sounds like a linear equation. If the ball sprite is 100 x 100 (when 1:1), then, it should be something like:

    Every tick -> ball.width = 100 * [here a function with ball.X (screen center) wich gives as a result 1, so it multiplies 100 by 1 to get the max size of the ball], when at the center of the screen.

    And at the left edge, where ball.X = 12,5, the same equation should give you something like:

    Every tick -> ball.width = 100 * [here the same function on ball.X (12.5 for left edge) wich gives as a result 0.25, so it multiplies the 100 by 0.25 to get your 25 pixels wide ball]

    Also, I guess Every tick -> ball.height = ball.width after the above.

    Sorry I can't give you the equation, but it should be easy to google by "finding linear equation with 2 points", those points being [screenwidth/2, 1] and [12.5, 0.25].

    Good luck!

  • Create a third variable wich is equal to the two other variabled added, and that's what you show the player.

  • Oh man, I don't like to "up" threds but I have not been able to find a solution for this D:

  • Put the origin of the sprite on the left on its lower right corner (sprite1).

    Put the origin of the sprite on the right on its lower left corner (sprite2).

    In events: Every Tick -> sprite1.angle = (sprite2.angle * -1)

  • Hello forum, I'm in a bit of a bind here, I made a simple app for life tracking for card games (MtG specifically), with construct 2 -> cordova export -> Cocoon for the apk.

    The thing is that in MtG a lot of the time the life of the players won't move and since there will be no interaction with the screen, it will dim and lock. I can "fix" this with the phone display settings, but I rather have an option in the app itself.

    I've looked around and found the cranberry plugin, wich has a site for download and documentation on how to integrate in C2 and Cocoon, however, the download link is dead and I can no longer get a hold of it, I was wondering if anyone that comes across this post could zip the folder and share if that is possible, or point me to an alternative.

    I found the Cordova Power Managment thread () in the FAQ, but I couldn't find the explanation on how to integrate that into Cocoon, is not listed in the plugin list it has (I tried the plugin "as is", but couldn't make it work). I'm just learning these things, so something that may be ovbious could be escaping my understanding of the process at this point, a healping hand could be awesome.

    Thanks in advance!

  • Hello~

    I'm krls, graphic designer that got into construct 2 via a job at some place where I HAD to learn it, and wich was a lot of fun! (I'm sorry flash, is not you, is me)

  • 15 posts