Index's Forum Posts

  • Go to the link below and find "The second element of the pack is Div." - Download that file.

    Go Here

  • Would Lerp work in this case?

    lerp(a, b, x) (there is also unlerp)

    Source

    A = Starting Position (such as the X or Y of the object IE. object_name.Y)

    B = Position to Reach (such as object_name.Y + 50)

    X = Percentage or otherwise interpreted potentially as speed. (Ex. 0.3)

    LiteTween might also work -

    Thread

    I personally haven't used LightTween. It looks nice though and I'll likely download it to try it out.

  • You just have to reassign them again for the new layout.

    So if you have an object called "Plane" that is global and on layer "Game" on one layout

    Then when you load a new layout, you just add:

    Plane move to layer "Game"

    Was that what you meant?

    Yes. Although I was hoping an automatic workaround was made. Seems odd that it's not provided by default.

    Thanks though. I'll probably end up having to do that.

  • Switching layouts keep the Global Object on a layer number.

    This is problematic when layouts have varying layers.

    Is there any way to make a global object adhere to layer names and not layer numbers?

    Reason: Global GUI that is always on (or near) top.

  • Wii U export??? I most definitely missed that bit of news! That is awesome!!!

    Surprised you missed it. I got like two emails, probably saw multiple tweets, the blog post appeared and I think there was a facebook update about it.

    They really wanted everyone to know and you failed them. How dare you.

    =]

  • Why not set the global variable back to 0 (or whatever you need) upon layout start?

  • Anyone know how to get the height of the individual divs?

    Since the construct object doesn't automatically size itself to the HTML content.

  • Ashley is right- you need to use the Socket.IO Construct 2 plugin to connect to a Socket.IO server. - I've never used that Websocket plugin *shrugs*

    I recommend this one : scirra.com/forum/socketio-mod_topic63284.html

    I'm also going to try learning the Javascript Plugin SDK to try updating (recreating) the PubNub Plugin. (Pubnub => pubnub.com/)

    Good Luck with your Game.

    My Socket.IO Settings

    io.enable('browser client minification');  // send minified client
    io.enable('browser client etag');          // apply etag caching logic based on version number
    io.enable('browser client gzip');          // gzip the file
    io.set('log level', 3);                    // ---0 = Errors --- 1 = Warn --- 2 = Info --- 3 = Debug---
    io.disable('destroy upgrade');
    
    io.set('transports', [
        'websocket'
    // // WARNING // // USE ONLY WEBSOCKETS WHEN USING SSL (WSS) SECURE // // WARNING // // USE ONLY WEBSOCKETS WHEN USING SSL (WSS) SECURE // // 
     // , 'flashsocket'
     // , 'htmlfile'
     // , 'xhr-polling'
     // , 'jsonp-polling'
    ]);
    

    Note: I wrote that warning some time ago. Someone had mentioned that a secure connection was faulty under other protocols other than a true websocket connection. This may no longer be true, should check up on it if you're curious.

  • <3

    This sounds like how the textbox should be by default.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I suppose so. Which makes me wonder why previewing makes it think you're not using Socket.IO.

  • Add

    io.disable('destroy upgrade');

    [io is related to the "require('socket.io')" statement]

  • I am also doing some work with Websocket-related things at the moment. So far, a lot of it is rather irrelevant to Construct 2 minus the plugin you choose to use.

    Websockets are exactly what they are- a websocket. This means that a lot of the extra features are just purely not present.

    Socket.IO brings in extra functionality. It uses websockets but also has things like rooms(channels) and fallback policies*. A reason to not use Websockets is that if you don't need that functionality or you want to custom add what you want.

    *Fallback policies are presented when a client fails to utilize websockets. This can allow non-websocket accepting browsers and mobile devices to still have a websocket-like connection.

    Note: Preview mode when using Socket.IO seems to always use a non-websocket mode.

  • Can we get an example of each color scheme in question?

    Edit: Nevermind, I have construct 2 installed on this PC ;) sec

    Edit2: Nothing seemed to change even after restarting like it says *shrugs* Anyway~ pick a good one =]

  • Significant things are significant. So take your time.

  • <3 Np. I think we were pretty much over anyway, haha.