pikazho's Forum Posts

  • pikazho

    Just took a look at your code, and the only big problem I see is that you are setting a text object every tick. That causes major trouble on mobile. Instead, only update the text object when the distance changes. Better yet, use a sprite font... although, with only one text object being rarely updated (only when it needs to change) you will probably not see much difference.

    Thank you very much for your time, I changed my code and just update text when needed! it get a little bit better but the lag is still obvious, my phone is LG G4 with Android OS 6.0!

    so I think its just happened because of html limitations and no way to fix it to bee completely smooth on all devices.

  • pikazho

    On tablet so can't check capx, but guessing you're using bullet for background, try using leap

    Also, I wouldn't call that a platform game, more like an endless flyer.

    Thank you for your answer.

    I don't use bullet behavior, I just change Y position of background in every Tick,

    I replace my scrolling code with lerp function but no difference, by the way, I had tried bullet bahavior and 8-direction for scrolling too!

  • Thank you for your answer.

    I don't use bullet behavior, I just change Y position of background in every Tick,

    I replace my scrolling code with lerp function but no difference, by the way, I had tried bullet bahavior and 8-direction for scrolling too!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi

    I have made a very simple endless flyer game, but scrolling background has lag on mobile devices,

    my mobile is LG G4

    this is my capx:

    http://shikpoosh24.ir/tmp/p1_4_3_SD.capx

    and this is the exported game in html5 if you want to run on mobile:

    http://shikpoosh24.ir/tmp/test

    thank you for your time

  • just from project properties, set "Full screen in browser" property to "off"

  • UIDs are generated by C2, you can't set the value or create it from a UID, which is just a number.

    yes I cant set uid but I can add sprites in a spacial sequence so c2 will assign my desired uid to it.

    rex_nickname plugin helped me to solve my problem

  • C2 can't create objects from variables. However you can use this plugin to assign a nickname to an object and create an instance from it whenever ou want:

    http://c2rexplugins.weebly.com/rex_nickname.html

    Thank you this plugin does what I want

  • Hi

    I have and array containing 100 UIDs,

    I want to create all 100 objects in one line using their UID and a for loop

    I need something like "System --> Create Object" Action but by passing UID

    is it possible?

  • Thank you my friends, I am new to construct2. it was my mistake, I copied rex_moveto to plugin folder instead of behaviors folder

  • Pathfinding for a Platformer maybe?

    Or do you mean a dash or something like that?

    With this little information nobody can really help you with your problem..

    sorry for incomplete information

    I'm developing card game and I want to move a card for example from left side of table to the right.

    I want to set speed+position and card move to that position.

  • pathfinding, platformer, bullet, custom behavior, lerp or move to plugin... or maybe set position put more details in to your problem. More power!!!!

    I'm developing card game and I want to move a card for example from left side of table to the right.

    I want to set speed+position and card move to that position.

  • It depends on what type of movement you want. You can either use the bullet behavior or the custom movement behavior.

    I'm developing card game and I want to move a card for example from left side of table to the right.

    I want to set speed+position and card move to that position.

  • Hi

    How can I move an object to a position (it would be better to set moving speed)?

    I found rexmove plugin but I think it was too old and construct2 showed me error.

  • Hi

    I want to have a players independent chatroom. I mean I want my server to be host and players join the chatroom will be peer.

    I have a virtual linux server that has ubuntu consol (not visual element of ubuntu).

    I have setup a turn server on it so I have solved NAT problems.

    I know one way is to open browser in a server and login to chatroom so my server will be host, but my server has not browser, it has just ubuntu terminal.

    is there any way to achieve my goal with my current server or I have to rent a new server with ui and browser?

    thank you take the time and read my question

  • Cell data (e.g. 4G) sometimes uses NAT which blocks peer-to-peer connections. It's a problem with how the carrier has implemented 4G. The multiplayer tutorial covers the subject in the first part.

    Thanks for your answer but this is a big problem, in this case many players that uses 3G or 4G (over NAT) cant join multiplayer game.

    in manual it says:

    "There are several other variants of NAT, including large scale NAT applied to entire regions, ISPs, or mobile networks, and some are more restrictive than others. Unfortunately this means in some cases connections are not possible, particularly if both the host and the joining peer are behind highly restrictive NAT. However with common setups players can usually connect to each other, and generally the closer they are geographically the more likely the connection is to work and provide good quality service."

    what does it mean by saying "However with common setups players can usually connect to each other"??

    is there something I can do to increase connecting chance via NAT (like mobiles connect via 4G that uses NAT)?

    what is the solution? is there any way? if yes please help with with giving a refrence link, etc

    thank you very much