mahdi71's Recent Forum Activity

  • hi,

    textbox have problem :

    we can only set textbox layer in c2 editor and not with the events , but we need it . why ?

    problem :

    if we make a global textbox then we change the layout the textbox layer can change

    now if the new layer is invisible then textbox will be invisible and we can not change the layer of textbox in code

    this code in textbox plugin is the problem : (look at the red)

    [quote:k7jog20d]

    // Is entirely offscreen or invisible: hide

    if (!this.visible || !this.layer.visible || right <= 0 || bottom <= 0 || left >= rightEdge || top >= bottomEdge)

    {

    if (!this.element_hidden)

    jQuery(this.elem).hide();

    this.element_hidden = true;

    return;

    }

  • I think in exporters folder there is some files but which one ?

  • hi

    why this javascript code not working when i use it in the index.html

    [quote:1fx75aep]document.getElementById("c2canvas").setAttribute("dir","rtl");

    what files i have to change if i want to change this :

    [quote:1fx75aep]<canvas id="c2canvas" width="854" height="480">

    it seems construct 2 change the c2canvas attributes in runtime but where ? i whant to add another attribute and i whant to see it in preview and runtime .

    which file ?

  • mahdi71 Have you solved this problem? How?

    What's your phone OS version? Which phone are you using?

    nop my game still crash so thanks for that scirra

    it's crazy you even compare c2 with unity !

    unity 5 is now like windows 10 so there is no new big versions and after that fixing those things, now they add stuff when ever they ready and that's why there are more bugs !

    but we get new stuff sooner and engine change so much more and like before doesn't get behind of other engines and this is a new way for unity so give them time to fix things

  • hi

    if you want me to answer please use like ( whoisda ) or replay me.

    for websocket you have to know javascript wich is easy

    here is some tuts:

    Subscribe to Construct videos now
    Subscribe to Construct videos now
    Subscribe to Construct videos now
    Subscribe to Construct videos now

    _or you can search google for more ..

  • Hi,

    I'm trying to create a local/couch multiplayer game for mobile devices much like Spaceteam (which is a great game and you should play if you haven't already). It has a very convenient feature where players can connect to each other either via Bluetooth or Wifi using a peer to peer connection. The best part is that it does this even if there is no internet.

    From what I have read, Construct can only make a multiplayer connection using its signalling server which requires the internet. The other option is to buy the signalling server and install it on a LAN but the server only runs on computer devices and not on mobile. Also if it did, it is very unlikely that I can ship every game with its own signalling server.

    I say this because I want the game to be accessible with or without the internet, using Wifi or Bluetooth.

    Is this possible with Construct in any way? Has someone tried something similar?

    you must use websocket and nodejs

    but your clients must input the host ip in local network

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yes scirra answer ? because a lot of us have this issue

    (my game right now have a force close issue on android) in preview i have no issue no error no problem but in mobile it get force close when player playing it for awhile

    DON'T say its a 100$ engine because unity is free !

  • Yes, i have same problem i think it's a bug. However i solved it by disable sound preload. Try it, let me know if it works.

    no it doesn't help because my problem is musics and not sounds

    i think musics load in memory and doesn't release and then when start playing same music again its load a new one in memory !

  • hi

    i have a game wich when user win or lose the game timescale change to 0.0001

    then a win or loos music (in music folder) start playing

    but after a 4 - 5 time wich user win or lose, the game start crashing and get force closed

    i disable the music group (wich start playing win or loos music) then game runs fine !

    i use cocoon canvas+ for this but since this is an audio problem i think this is a construct 2 problem here

    so why is that ? how can i fix this ?

  • > newt , tunepunk

    > in a game you have alot of different sprites

    > let say you have 1 sprite with size of 300 * 300

    > and another with size of 300 * 100

    > and 2 sprite with size of 100 * 100

    > ok if you load each one : (the way wich construct 2 using now)

    > sprite1 = 512 * 512

    > sprite2 = 512 * 512

    > sprite 3,4 = (128* 128) 2X

    > - now the way wich i suggest :

    > pack sprite 1,2,3,4 to one 512 * 512 texture .

    > result : huge memory optimization

    >

    Sprite Sheeting only happens when you have multiple frames, and goes to the nearest power of 2. Are you saying you have an animation with 300x100, and100x100 frames?

    If you have a bunch of odd sized textures you will not gain any bonus from sheets, as there will be more unused space that way.

    each sprite have 1 image.

    no do you know images save on memory by power of 2 ?

    so how can you say that ?

    my example is very clear

  • newt , tunepunk

    in a game you have alot of different sprites

    let say you have 1 sprite with size of 300 * 300

    and another with size of 300 * 100

    and 2 sprite with size of 100 * 100

    ok if you load each one : (the way wich construct 2 using now)

    sprite1 = 512 * 512

    sprite2 = 512 * 512

    sprite 3,4 = (128* 128) 2X

    • now the way wich i suggest :

    pack sprite 1,2,3,4 to one 512 * 512 texture .

    result : huge memory optimization

mahdi71's avatar

mahdi71

Member since 24 Aug, 2014

None one is following mahdi71 yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies