GeorgeZaharia's Forum Posts

  • fixed silent walking, it was cause you where changing the current speed which is influenced by acceleration which caused the locking direction... however if you change the max speed that is another ordeal.

  • here you go quiz xml forgot from where i got this.. i know is based probably on the same tutorial but really forgot where i have it from... tutorial section maybe

    its using xml instead of .txt but the format is same.. only has some bracket <> etc for options and corect answer.

  • In this example the full screen is maintained even if you close all applications in the background or do other things.

    That's what I'm looking for but with 400x240 resolution.

    Change the resolution on my project is very laborious, although at this point I don't know which is better.

    you have to keep the 16:9 or 16:10 aspect ratio, basically 400x240 is around 16:11 which is a bit squared as aspect ratio... thats why if you search for mobile screen resolution you will probably get recommendations of a ratio 16:9 or 1920x1080 ... its the easiest fix to do... just rescale the project by 36 pixels. or 40.

    its a inconvenience but this is how mobile screens are done..

  • The product symbol means a for-loop. You just changed your post to say you don't know what the Product symbol means - it means you have to do a loop, from the number on the bottom to the number on the top, because the index is used in the enclosed expression.

    yea i did said that i dont know what the [] big sign means i just said that... never changed the meaning of that ... i changed the text where i was expressing myself to harsh maybe and making you think im telling u something that there isnt...

    my point is in the capx above.. raising at ^ power is a expression in C2 the [] sign i dont know what it is probably is ceil but its probably not.

    and times expression is there also which is * this means times something maybe we miss understood each other.

    Edited: now i see what you where saying, the times() i used i missed on changing or remove it, its the * sign if you copy paste the formula from the page he gave, you get times() instead of * its just a typo lol.... miss understanding at its best. ha ha

    edited2: here is the copy pasted data from the website shared originally directly from website using ctrl+c and ctrl+v to paste

    \left \lceil 10\times(Level-1+1.55^{Level-1})\times [isBoss\times 10] \right \rceil <--- hence the times ... i forgot to remove... not a big deal.

    edited that is pi lol the product symbol just googled it... my math skills are rusty. also its pi sigma to use it properly which i dont think C2 has.

  • There is no times() expression in C2.

    i think there is ... ^ this is raising times (number after it)... you should check the power of 2 for audio i always use FFTsize 2^15 which is = to 32768 maximum fftsize allowed by c2 audio.

    times expression in C2 is * <-- 10 times 2 = 20 if you do 10*2 youl get 20 in c2

    here is a capxthat demonstrates that.

  • Hi,

    How do I do complex math formulas like the one here:

    http://clickerheroes.wikia.com/wiki/Formulas

    check the one with PRODUCT. I need to use for loop or there is another way.

    Thanks

    From Level 1 to Level 140:

    ( 10* ( (Level- 1) + 1.55 ^ (Level-1) ) * (isBoss * 10) ) this should work.

    From Level 141 to Level 500:

    (10 * ( 139 + (1.55^139) ) * (1.145 ^ ( Level-140 ) ) * ( isBoss* 10) ) this should work also.

    From Level 501 onwards:

    i dont know what the II sign means... its product of the above and beneath number however dont know how is represented in C2. probably is ceil() system expression but im not sure.

    edited : since the sign with double II is pi

    (10*(139+(1.55^139))* (1.145^360)* (pi/(i=501^Level))*(1.14+0.005)*(pi/(i/500))* (isBoss * 10)) - im not sure this will work... but you can test it out.

    edited again: (pi/(i/500)) i think should be calculated with atan(i/500)

    In which II is the product symbol or pi in C2 and [] are ceiling brackets.

    Edited 5 or so:

    continuing with my stupidity probably

    Hero Cost Formula (cost of upgrading from "Level")

    The cost to level up Cid-Summer Cid, the Helpful Adventurer from level 1 to 15 is:

    floor((5 + Level) * 1.07^Level - 1)

    The cost to level up Cid-Summer Cid, the Helpful Adventurer from level 16 is:

    floor(20 * 1.07^Level - 1)

    The cost to level up other hero by one is:

    floor(BaseCost * 1.07^Level - 1)

  • int(random(animationframecount+1)) as blackhonet said, or use round or floor (random(0,animationframecount)) will cut the .3231321 digits after the full number

  • yes i get the same results, up and down margins are ok, but left and right are shrinking, that is cause of the layout not being the right size.

    here is my capx 436x240 capx

    here is my android versions on 436x240 for me no more margins apears doesnt matter what i do if i go out of app or restart it or do anything no margins only the 1 px from phone but nothing if i rescale/close/restart app.

    also the fullscreen action doesn't work on mobiles... not sure if that is what your saying... its just the stretchtofill thing... even in preview c2 doesnt let you request fullscreen via browser plugin. but that is something i missunderstood for sure... hope the capx above and androids are working well for you .. and fixes the margin issues. if they dont... then i have no idea.

    however i didn't updated my intelxdk, im still using 3641 version. and C2 r239

  • It is not normal that the first time you run you have full screen but if you do "close all" then you lose the full screen.

    no the first time i run the app i get margins i never get full screen ... the margins are there on my android phone from beginning doesnt matter what i do afterwards, is the resolution not being in the phones aspect ratio specifications, the only fix is to just enlarge the width of the project by 30 -40 px however you should use the default size 640x480 (which wold fill in for square tablets also not only wide screens.) or the half of it wold be 320x240 i should test that also on 320x240 this intrigues me also. cause a project at that small scale is much faster on android devices then a project above 640x480 like dramatically faster, and it only makes sense, less memory used to drawcalls.

    Edit2: so i redone the test on 430x240 that fixes the margins, however now remains the 320x240(but this is 4:3 aspect ratio) maybe the smaller layout you need.

  • im building now a apk with a orange bg for android as intelxdk tutorial compiling should do, then il try one with the cordova package inside

    im using the same size as you 400x240 and leterboxscale with landscape locked.

    give me a moment.

    Edited1: same results as you said on 400x240 its missing like 20 pixels each side... but then i guess the aspect ratio is not 16:9 or 16:10 ... that is the issue you have... that 400x240 it should be 480x260 if im not mistaken

    let me add another 20 pixels and make it 420 x240

    Edited2: yep so its the aspect ratio you need to follow the 16:9 or 16:10 what ever the size of 440 x240 is .. i did the test on the size of 420x240 and the margins are shorter then before, they now missing like 10 pixels ... so im guessing just increase the width of your project to 430x240 or 440x240 if that is not a big replacement for you project system, but its only 30 - 40 px difference shouldn't make a big of a difference. unless you have everything scaled down to 1 pixel movement.

    430x240 should fix the margins... however to be more safe you can try 440x240

    since i never seen a 4:3 aspect ratio mobile phone... maybe ipads or tablets are squarish.. but not mobiles...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Have you tried to change the fullscreen mode to leterboxscale instead of leterboxinteger?

    i never had this problem with intelxdk... seen people having it... but in R239 and R240 never faced it.

    also have you tried without converting in intelxdk without using the cordova special stuff?

    i used that one time... fked up my app i moved away from it. and since then i never had issues. however i never used ingame ads.

  • > check this tutorial should cover all aspects from making a facebook game to publishing

    >

    Thank you for your reply but It's outdated and its tutorial how to make game facebook, not work on mobile.

    for mobile in intelxdk for your app to get access to the internet you add the following in the special permission boxes -> *

    but the tutorial tells you how to connect a facebook game code and secret code to the facebook plugin in the C2 project everything else doesnt matter if its mobile or not... C2 is crossplatform, means you build for facebook/pc what ever/ you publish everywhere without changing nothing.

    that said your doing something wrong if the sign above doesn't help you. follow the tutorial again and add the special permission from above.

    P.S also you need for facebook settings to be ready, and you to submit the game to review for special permission, if you dont send it for review the app wont work cause facebook will block your access. which probably happens now.

  • set loader style in settings of project to nothing , and above pixel rounding set use loader layout to yes and change the default layout to show to the loader layout you have the animation on.

    this however will skip the preloading of music and everything else that C2 preloads.

  • play sound at object. and you have angles to play the audio towards, and have a angle to increase or decrease the audio ... you can make the play audio at angle of position of player and curent sound position and update it... however i think will restart the audio...

    this is best to use for car engine sounds short FX's and not music... but im not entirely sure if the restart of audio to update the angle is necesary or automatically updates once the angle is set and player position is changing interactively.

  • you have to disable the physics behavior then pin to rope... other way if both behaviors are active the position from physics and pin wont work.. since they will conflict with each other.