99Instances2Go's Forum Posts

  • Enjoy !

  • It should not be a problem. The Browser object can request fullscreen. I also gives you ScreenWidth en ScreenHeight. Those are your swipe distances. Wat i miss ? I do miss something, just dunno what.

  • Dont think so, Construct mostly does not do 'if this,then that'.

    I will bring even more confused people.

  • 99Instances2Go Is an array really needed for any reason other than having 1 object on screen instead of 24. Is that the only reason?

    Suppose you want to dynamicaly create levels. In the layout of this capx, no path, not even buttons placed in the layout.

    https://drive.google.com/open?id=0B1SSu ... GprNlNNMmM

  • There are two things to consider in an or block, the logical TRUE/FALSE and the objects it picks (feeded to the actions).

    For the the logical TRUE/FALSE, an or block is the same as the conditions seperated with a copy of the actions.

    (yes i know its more code). If you are not picking objects, yes plz use an or block. And no, it dont accept an AND middle in the OR.

    For the picking, if the or block contains a second condition picking the same object, then its starts from what is previous picked in the first condition picking that object. It will then happen that the logical TRUE/FALSE is correct but that there will be no objects feeded to the actions, due an empty picklist.

    If you dont think an or block really trough, you are better of anywayz with a block for each condition and duplicated actions.

    My 2 cents.

  • True, but the question was: Fill Array with Sprites. Suppose there is a reason to ask it that way. Dunno.

    And to be honest, i hate arrays (well hated), i had to master them one day. And best soon.

    I am only here to learn more Construct by solving other peoples puzzles. It prooved to be the best way for me.

  • Based on Browser.ScreenWidth en Browser.ScreenHeight ?

  • I appologize 4 sounding so harsh. But sometimes you need someone who kicks a little.

    Plz test this CAPX trough. I might have forgotten something.

    You will notice (i hope you do) 3 importand things.

    https://www.dropbox.com/s/jpfmgdz554mr5 ... .capx?dl=0

    1/ Changing direction, velocity and all that stuff must happen inmediatly, and must be able to happen fast. The animations can only happen only once when there is a change in the situation. Thats is why you cant change animations and those other things in the same event. They have a totaly differend ritme. Hence, animations get there own dedicated events.

    2/ Each animation (when its top event aint a trigger) has a 'once while true'.

    3/ Each animation has only ONE event to get it started. No where else in the whole event-sheet an animation has another event that starts it. As you see that is possible using 'else' statements. Those else statements also make it a dang sure thing that there is only ONE animation (out of differend) started in whole that event block. You see ?

    There are things i dont know. Can it attack while gliding ? I supposed it can. But, this must be easy to change for you now. Because you see ALL animations grouped thogher in a big hug.

    I plain love the way how you make it glide, that i learned from you.

  • There is something as the 'aspect ratio'. Width/Height (in pixels). Yes.

    But there is also a thing thats called 'Non-square pixels'.

    Look up the screen resolution in pixels. Calculate the aspect ratio. I suppose that is 640px x 1136px ?

    Take a ruler. Measure screen. Calculate the aspect ratio. If they are not the same, the device has 'Non-square pixels'.

    I think you problem is there somewhere. Latest Android is using 'dips' as a unit, in stead of 'square pixels'. It means Density-independent Pixels. And thats ALL i know. Wich is, i know, not that mutch.

    A bit to lazy to read all this too, sorry.

    https://developer.android.com/guide/pra ... pport.html

    gl.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • clamp((1100 - distance(x,y,x,y)),0,100)

    distance = 1100 > 1100 - 1100 = 0

    distance = 1000 > 1100 - 1000 = 100

    distance = 2000 > 1100 - 2000 = -900 > clambed on 0

    distance = 500 > 1100 - 500 = 600 > clambed on 100

    distance = 1050 > 1100 - 1050 = 50

  • Serious ?

    Gdit. So verry sorry i made that dumb mistake.

  • In the same tick ....

    19 sets the attack1 animation.

    25 sets the attack1 animation.

    28 sets the attack1 animation.

    At least 2 of those 3 is true, mostly all 3. And they stay true for quite some time.

    So, the animation gets started several times in 1 tick for a lot of ticks in a row.

    Result: the animation starts to playing and never gets passed frame 1.

    Because, before it ever gets to frame 2, its is commanded to start from beginning (frame 1) again.

    And again, and again, and again, and again.

    I would like to see the tutorial, i do not beleive it makes the same mistakes.

    Even if you solve this one thing, the code stays a mess. I expect it to be the same mess in the player movement section.

    I suppose 'fly', 'idle' and 'run' also get started in that section. Meaning without a capx, this is not solvable.

    Excuse me the harsh words, but i suggest: Start over. And use 'Trigger once while true' when needed.

  • Interresting that you still have kinda all versions.

  • OH, you mean with a big blue sprite ?

    https://www.dropbox.com/s/8gl12t9f0mg9p ... .capx?dl=0

    Works.

  • Ok.

    https://www.dropbox.com/s/s280t6d48b00z ... .capx?dl=0

    Layer opacity = zero. Buttons shows. No opacity for button.

    And now ?