leomachado666's Forum Posts

  • Thanks!

    But i found this CAPX that easily registers the first touch and last touch and gives you back the X and Y swipes...

    Try it people, it's super easy!.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hey, i want to create a "dash" for my platform character,

    i want the player to touch the character and then swipe right to dash right and swipe up to dash up

  • Hey

    I need my character to collide with certain blocks and the enemies to pass through them... is it possible?

    cant manage to make "disable collisions" work

  • PaulloAmaral Ok, I recently discovered that if i changed all my "on every tick event" to "every 0.01 seconds" instead. The performance of the game was greatly and I mean GREATLY improved on all my mobile devices. Try to use as high number as you can. So if you can use on every 0.1 seconds instead then do that.

    The small lags here and there just disappeared. So on every tick events are heavier than I thought on the machine.

    But crosswalk has never worked for me. Lags as hell and I do not understand how people here has been able to compile a game using it

    It's true about the every tick suggestion,

    Instead of Every Tick you get almost the same results with something like

    Every 0.05 seconds or something like that

  • Te thing is i need to do it with a 960x640 layout :/

    edit:

    Problem solved

    I will edit the first post with the solution!!

  • troublesum

    I'm setting the layout to 960x640

    margings 950,630

    Windows size 930x610

    On player landed, shake 1 second...

    but it doesn't work

  • So, which one should i increase? the layout size,margin or window size?... also i suppose the screen shake goes on the character...

  • Hi guys

    I wanted to know how to create a camera shake in a 940x640 windows size,layout and margin...

    i am not using unbound scrolling,

    Because when i use it the screen goes messed up :O

    EDIT:

    i solved the problem so i will tell you how i did it...

    So my layout is 960x640 and i'm making a runner like the Construct 2 template and i want to create a camera shake, what i did was

    Set unbounded scrolling to YES

    Create a square sprite in any place

    set an every tick that says -- > Every Tick -> Square set position to LayoutWidth /2 and LayoutHeigth /2

    Then set Scroll To Behaviour to the SQUARE (not the player)

    After that set your trigger,

    i used "Character on land" ---> shake 1 second

    Hope it helps, for my example it worked...

  • I just tried the formula and it worked perfectly!

    Thank you LittleStain! good luck

  • Thank you Sir! i will try what you posted...

    I guess that i could do something easier like

    If bgtile width => than 200px

    Create Item on bgtile bbtop ?

  • Sorry i forgot to clarify something, the platforms are tiled BG's

    Is there a way to create random platforms (like in the runner example) without beign tiled BG's ? then putting tiled bg's on top of it...

  • I think that in further versions of CocoonJS the performance will boost or somehow a new way of compiling will come out...but for now we have to stick with this performance.

    Guess HTML5 is still young

  • Thanks for your response. Maybe you could try my game, its on playstore called Borun. I would like to know if it runs on other devices.

    Hey Furdy,

    I'm having the same problem, i played your game and i get low fps, also in a simple proyect i'm making it happens the same thing... low fps.

    i'm using an S3 Mini...

    Is someone having the same problem con iPhones?

    Is it something that is happening only on CocoonJS?

  • I already did that, but some values, like width, height and position are set to random :S

    i did copy the event and all the stuff...

    Another solution to creating objects on top of the tiled bg might be picking the last instance and creating the object on top of it... but dunno how...

  • It's not working exactly as i need it

    So let's change a lil bit,

    What should i do if i wanted to create a platform on top of the tiled bg?

    So the tiled bg won't be required for collisions, and i can use the normal sprite platform (which is a blue square) to set image points and more stuff that can't be done with tiled bg...

    I'm still using the auto runner template