Search found 53 matches
- Wed Apr 26, 2017 2:53 am
- Forum: General Development
- Topic: Picking up an MMO project from years ago
- Replies: -1
- Views: 1507
Re: Picking up an MMO project from years ago
quick question Is there a way to use an array of sprites on one image instead of using hundreds of images in phaser? I'm looking at the documentation for phaser and the issue is when I type tilesets it seems to mean something different. I think it's sprite sheet but I don't see a way to load a sprit...
- Wed Apr 26, 2017 2:20 am
- Forum: General Development
- Topic: Picking up an MMO project from years ago
- Replies: -1
- Views: 1507
Re: Picking up an MMO project from years ago
Thanks for the feedback. I'm really excited to pick the project up and phaser even has a state manager of some kind I felt like gamestates made my code really hard to read. Is there a good tutorial where someone users phaser to generate the type of game that no data that goes to the server actually ...
- Tue Apr 25, 2017 8:14 pm
- Forum: General Development
- Topic: Picking up an MMO project from years ago
- Replies: -1
- Views: 1507
Picking up an MMO project from years ago
So last time I made an mmo I think my code got so spagetti stringged and I changed my mind so many times about how to solve my problems during the process of making it that I abandoned the game and at one point I was almost finished and hit a wall where the program just wasn't running efficiently. S...
- Thu Aug 02, 2012 3:41 am
- Forum: Beginner Help and Support
- Topic: Error Message io is not defined
- Replies: -1
- Views: 340
Error Message io is not defined
I'm trying to connect to my server from another computer it works fine when I connect from my server via http:\localhost and via the ip-address but I can't connect from another computer when I try I get the error message below... Here is my code and the error message. Client side... <script src=&quo...
- Mon Jun 25, 2012 9:18 pm
- Forum: Beginner Help and Support
- Topic: java-script variable scope problem
- Replies: -1
- Views: 429
Re: java-script variable scope problem
ugh I tried it... not working. var from_sql connection.query(sql, function(error, rows, fields){ var sack = rows[0].sack.split(",") for (i=0;i<sack.length;i++){ if (sack[i]==item_id.toString()){ sack[i]="0"; sack = sack.join(); from_sql="UPDATE game_moblist SET sack='"+...
- Mon Jun 25, 2012 5:36 pm
- Forum: Beginner Help and Support
- Topic: java-script variable scope problem
- Replies: -1
- Views: 429
Re: java-script variable scope problem
I feel more confused than when I started. If I could simplify my question it might help. connect.query(arg1,function(error,rows,fields){ //get info I need for setting variable var I_need_this = true; }); //I need to access that variable here outside the function This doesn't work var I_need_this con...
- Mon Jun 25, 2012 3:37 pm
- Forum: Beginner Help and Support
- Topic: java-script variable scope problem
- Replies: -1
- Views: 429
Re: java-script variable scope problem
@Xaleph thanks for the reply. I tried to use the container method in my code by declaring from_sql before I started queries but I lost the value somehow. I must be doing something wrong that I don't see. Perhaps you could show me an example because returning the value doesn't seem to work it was ret...
- Mon Jun 25, 2012 3:03 pm
- Forum: Beginner Help and Support
- Topic: java-script variable scope problem
- Replies: -1
- Views: 429
java-script variable scope problem
So I think I have a missed concept here related to variable scope I tried to declare the varriable from_sql outside of the functions that use it... I console.logged where I lose the varriable the input is player_id = varries with player itemlist = null (not needed for the instance I'm having issues)...
- Sun Jun 17, 2012 9:49 pm
- Forum: Beginner Help and Support
- Topic: Including impact on my server script
- Replies: -1
- Views: 212
Including impact on my server script
I would like my impact server to be able to detect collisions using my maps generated with weltmeister. I'm not that familiar with include require module etc. The reason I want to do this is so I can have my server control the entities via websocket. Any help would be appreciated.
- Wed Jun 13, 2012 9:59 am
- Forum: Beginner Help and Support
- Topic: Using MySQL wtih websockets
- Replies: -1
- Views: 210
Re: Using MySQL wtih websockets
So I dug up some info and wanted to post the answer to my own question here... Given the socket function socket.on ('login', function (username, password){ connection.escape(username); connection.escape(password); sql ="SELECT * FROM `playeraccounts` LEFT JOIN `players` USING(account_id) WHERE ...