Waltan's Recent Forum Activity

  • Never use connect: on playable layer.

    What do you mean?

  • vladoss i replied to you in the other thread

    basicUser im sorry, you should create a new thread, im capable of using Socket.io but i don?t know anything about MySQL, php and AJAX, yet.

    You need someone other to help you out with that.

    I added you in skype.

  • You need to open your ports in the firewall.

    http://windows.microsoft.com/en-us/windows7/open-a-port-in-windows-firewall

    I turned it off a long time ago. I do not think that the problem is in it.

    Maybe you can tell my your Skype nickname and we will continue this conservation there?

  • As it looks ther eis a spelling mistake: ""95.73.64.177"

    There is a " too much in the beginning.

    Nah, I made this mistake when was writing this post.

    <img src="http://puu.sh/3DDS5.png" border="0" />

  • I finally figured out a little socket.io. It works great when I'm using localhost but I can't connect to my external ip address.

    In connect event I changed "localhost" to my IP - "95.73.64.177" and nothing works.

    Do I have to change something else, or the problem is quite different?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • as i can see there, it starts the server and a client connects.

    It also sends correct informations and invalid,

    info - handshake authorized

    ^^ shows you a client connected

    debug - websocket writing 1::

    ^^ shows you a empty message has been sand, not good.

    debug - websocket writing 3:::you,myusername

    ^^ perfekt, it sended two values, you and myusername!

    So no, it doesnt cant connect, but some messages are maybe emitted/send/broadcasted wrong, or invalid.

    Maybe you should check the server if it handles the messages correct.

    How can I connect to my public internet ip? Changing "localhost" to "95.73.64.177" did not help.

  • Np, one of the first things you learn as a coder is that 80% of your mistakes are spelling mistakes, its true :)

    But I need your help anyways.

    I downloaded your .capx and launched. Then I clicked Connect and here we go:

    <img src="http://puu.sh/3Digd.png" border="0" />

    It can't connect, right?

  • You wrote npm install soket.io

    The problem is soket.io, you forgot an c.

    It should be: npm install socket.io

    Hope i could help

    -Conti

    Oh man, I feel myself an idiot right now. Thank you very much.

  • <img src="http://puu.sh/3CLj0.png" border="0">

    What's wrong?

    // I was using this tutorial

  • I hope this thread isnt dead, because i have some questions about it.

    1. When you click "generate path" strange pointer in (0;0) appears. I fixed by changing Source.PathFinder.getPathListLength to Source.PathFinder.getPathListLength-1

    <img src="http://puu.sh/3vRbD.png" border="0" />

    2. Name of loop in Event and in Sub-event is different, so i decided to delete sub-event and move actions to the main event, and it's still works fine, huh. Is it okay?

    <img src="http://puu.sh/3vRzR.png" border="0" />

    3. Your Pathfinder is calculating cells size from the beginning of the layout, right?

    Im using X = round(mouse.x/32)*32 and Y = round(mouse.y/32)*32 action to place "finish" point, for example, and it turns out that the coordinates are generated indented 16 pixels.

    <img src="https://dl.dropboxusercontent.com/u/34384736/w.gif" border="0" />

    And I get this:

    <img src="http://puu.sh/3vRQU.png" border="0" />

    Any suggestions how to fix this?

  • >

    > It's always been that way?

    As far as I've been using C2, and my guess would be for eternity before that as well. :)

    Thank you.

  • Event sheets are calculated every tick. So you are creating 3 objects every tick. You need some sort of trigger or condition if you wish it to run only once. Try the same thing, but at your for loop condition add 'Trigger once while true' from system events.

    It's always been that way?

Waltan's avatar

Waltan

Member since 5 Jul, 2011

None one is following Waltan yet!

Trophy Case

  • 13-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies