Search found 19 matches
- Wed May 23, 2012 3:03 am
- Forum: Beginner Help and Support
- Topic: Problem with Impact pong demo and Node/socket
- Replies: -1
- Views: 3140
Re: Problem with Impact pong demo and Node/socket
I just can't work out why the entity still isn't moving on command... I can definitely see the 'move' information being passed from the client to the server, but no movement... [SOLVED] Looks like we were forgetting to put the actual speed in the args (-100, 100) //Up Key pressed/released if(ig.inpu...
- Wed May 23, 2012 2:07 am
- Forum: Beginner Help and Support
- Topic: Problem with Impact pong demo and Node/socket
- Replies: -1
- Views: 3140
Re: Problem with Impact pong demo and Node/socket
Ah I see, so it must be binded before using it elsewhere?
As for the console output, yes I see the output 'this happened' showing up on the console. I'm assuming it always was working as it CMD prompt shows the 'press and release' outputs.
As for the console output, yes I see the output 'this happened' showing up on the console. I'm assuming it always was working as it CMD prompt shows the 'press and release' outputs.
- Wed May 23, 2012 1:49 am
- Forum: Beginner Help and Support
- Topic: Problem with Impact pong demo and Node/socket
- Replies: -1
- Views: 3140
Re: Problem with Impact pong demo and Node/socket
ah sorry about that. I've updated the index.html code quote. Yup, I changed the broadcast to emit (makes sense). both entities are loading just fine now (although now they are both blue instead of the red first player and blue for second player). Any ideas on why the entities are still not controlla...
- Wed May 23, 2012 1:02 am
- Forum: Beginner Help and Support
- Topic: Problem with Impact pong demo and Node/socket
- Replies: -1
- Views: 3140
Re: Problem with Impact pong demo and Node/socket
hmmm that fixed the 'vel' is not defined issue, although still unable to control entities. I will post my code here again just in case I'm still missing something... paddle-player.js ig.module( 'game.entities.paddle-player' ) .requires( 'impact.entity' ) .defines(function(){ var ismove = 0; var spee...
- Tue May 22, 2012 11:44 pm
- Forum: Beginner Help and Support
- Topic: Problem with Impact pong demo and Node/socket
- Replies: -1
- Views: 3140
Re: Problem with Impact pong demo and Node/socket
haha, yes that solved that issue. Now when I load a 2nd client, the 1st client spawns the 2nd entity, but the 2nd client only spawns the first entity. Also, 'vel' is undefined so there is no control of the entities still. I'm not sure how well you know Impact andor Weltmeister, but when I load my ma...
- Tue May 22, 2012 9:00 pm
- Forum: Beginner Help and Support
- Topic: Problem with Impact pong demo and Node/socket
- Replies: -1
- Views: 3140
Re: Problem with Impact pong demo and Node/socket
Ok another thing I've looked is that maybe no paddle entity will show on the game because the socket.emit('initializeplayer') is on the init function of EntityPaddlePlayer. So in order to run the initializeplayer put it on the main init function instead of the EntityPaddlePlayer. So when the game l...
- Tue May 22, 2012 8:52 pm
- Forum: Beginner Help and Support
- Topic: Problem with Impact pong demo and Node/socket
- Replies: -1
- Views: 3140
Re: Problem with Impact pong demo and Node/socket
The server starts up fine now and the socket is running.Ark wrote:uhmm yea make sure what jack said, also does the server.bat file is still open when you open up your game? or does it closes repently? If it closes then there's a syntax error on the app.js file :/
- Tue May 22, 2012 6:45 am
- Forum: Beginner Help and Support
- Topic: Problem with Impact pong demo and Node/socket
- Replies: -1
- Views: 3140
Re: Problem with Impact pong demo and Node/socket
Wow, thanks a lot! I though I would just reply now so you don't think I'm not following. I will let you know how I go with the changes!
-First Error when initiating the node server (app.js) apparently 'socket.io' is not defined...
-First Error when initiating the node server (app.js) apparently 'socket.io' is not defined...
- Mon May 21, 2012 11:26 pm
- Forum: Beginner Help and Support
- Topic: Problem with Impact pong demo and Node/socket
- Replies: -1
- Views: 3140
Re: Problem with Impact pong demo and Node/socket
I have it working now, it was simply a case of making the different entities controllable seperatly. For example, when I opened the first browser I could control the 1 entity on screen just fine. When the second browser was open, I could control the same entity but the new entity would update positi...
- Mon May 21, 2012 8:50 pm
- Forum: Impact and Node/Socket.io
- Topic: Impact and Node.js Video #7
- Replies: -1
- Views: 14479
Re: Video 7
I gave that a go (putting this.parent() inside each init and update function) but still no luck. With that, I also get an error saying 'this.parent() is not a function when placed inside the init of main.js I'm pretty certain I have the calls in the right place as most if not all of the code for the...