Aphrodite's Recent Forum Activity

  • Since this is WebGL only, I was wondering another thing:

    Could this be used rendering a 2D based game with 3D models efficiently (I know it can sounds dumb, but I'm pretty sure I'm not the only one to think about the mix 2D and 3D world.. Unified!), and also can we just turn off that alert message when webGL is off (to instead display a message ingame)

    Also it took a while to actually display the demo, all the 2D were good, but the 3D appeared like 2 minutes after only first time though.

  • I think you d be better off having a string representing the number, then translate it to a number when the calcul is needed.

  • I am not sure, but this might be what you are looking for: https://www.scirra.com/tutorials/68/pub ... -web-store

  • This is the solution for anyone else interested

    Just as a matter of precision for someone who is not a math guru:

    log(x)/log(2) = log_based_2(x) (log being a log based on any positive number)

    so of course log(x)%log(2) ---> If 0, then the log based 2 of x is an integer, and so x is a power of 2

    I'm not sure of the actual precision of the value of log(2) is stored, so keep that in mind too

  • spongehammer :

    the closure compiler (as it is called) is inside (where you installed construct 2)\Construct 2\exporters\html5\tools\closure , https://developers.google.com/closure/compiler/?hl=fr this may help you using it, or using another version of the minifyier (or the same with other settings) for the time being.

    I do not know that much about it though, and at th end I hope you won't have to go into this routine each time.

  • Just suppositions, that maybe could help you work a little better until this is solved.

    Question : Do you have the back-up options set up, and if so does it works? (since if it happens somewhat regularely, I don't see another thing that could cause that). Unless another program could be interfering ith C2 maybe (but this is still a supposition)

  • Which C2 version are you using? (a recent beta had this issue of sprite halved)

  • tecbug : I cannot awnser (since C2 doesn't have fixed date updates), however I suggest for this kind of work, that you stay on stable versions, only using beta for a quick taste of incomming features.

    If really you need to have a working version really quickly, I suggest you try to revert back to an earlier version if possible (I think there are threads about that somewhere) and to test if that works in the stable.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I agree, a cloud-compiling is a bad thing for users with connection problems, and also is adding more work that is not intuitive (like how many people ask about "where is my APK exported?", add to that than the exporter for crosswalks is named "Android" which surely does not help at all).

    If it is possible legally wise, it should be done (not removing the possibility of using the intel XDK, but giving the choice at least, since I'm not sure one wrapper currently can be used offline to wrap up our apps)

  • Construct 2 will try to tie the logic of the game to the VSync I think, which maybe is limiting the actual precision you need, also, the browser may take a little time to actually play the Beat sound when you command it to do so. I do not know if the sound playing is tied to the app framerate (and furthermore I 'm not sure the actual triggers can run between ticks), so the precision needed in your case might not be possible to achieve (I'm not sure of that, hope someone else can confirm or revoke it), also, What is a BPM? (Beat per ..?).

  • Aphrodite I like that algo you found there. Inspired I found a way to extend it beyond 32 elements. The idea is to use another array of 1's and 0's instead of just a number, and update the array with a simple function to add 1 in binary.

    https://dl.dropboxusercontent.com/u/542 ... count.capx

    It looks like counting sums of zero works, but it's also counting the case of none of the numbers added together. That case could be discarded by not using it when loopindex=0.

    Edit:

    Under further tests something seems broken with my capx.

    R0J0hound

    I didn't fully understood the capx (didn't had much time to look at it today), but instead of using an array of 0 and 1, why not taking int(Array.CurX/(2^loopindex))%2 instead of the getbit, I think it does the job over 32 elements(unless I got my math wrong).

    Also by adding a condition "loopindex > 0" at your 11 event, it does not add the empty case for 0.

    EDIT: Tried with 9, indeed not all solutions are found

    Edit2: I begin to see the concept, your bits array help to choose the values to show it seems, I'm still strugling to understand why no all values are counted though

  • I agree with r0j0hound, about the fact that it is not because it is easy that it shouldn t be included:

    First: readeability, just reading Sign() is explicit enough, contrary to the other expressions we can set up for it

    2nd: I had more trouble doing it that doing a lerp with expressions, because of the 0! And it is easy to forgot for a non mathematician guru than 0/0 does not exist (lerp does not need any conditionnal, it is a simple calculation, while Sign is not a calculation, but an evaluation at the end)

Aphrodite's avatar

Aphrodite

Member since 20 Dec, 2011

Twitter
Aphrodite has 2 followers

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies