briermay's Recent Forum Activity

  • oh and by the way I'm not new to programming been doing it for 14+ years in Perl, c, c++ and some JavaScript just new to construct2 which I'm liking just the manual tends to be a little vague in some areas.

    I already have a fully working multi-player server that this connects to using web sockets its just the weird way construct 2 works that I'm getting used to.

  • Pick Nth instance

    Pick the instance at a given place in the internal list of picked objects. This is most useful used in sub-events to act on separate instances. For example, in a "Sprite collided with Sprite" event, Pick 0th instance and Pick 1st instance can be used to act on each instance involved in the collision separately.

    as quoted by the link gives very little detail so I had no idea that was what it was for but thank you.

  • yes I understand that but reason I asked was I have another issue.

    I'm doing a multiplayer game I have the server working I have the connection working. upon connection it sends facebook info to the server which then retrieves their profil from MySQL and then will send back a series of indexes.

    it would look like

    B:0:0:1:0:2:10:3:2 etc (32 pairs in total)

    I then need to take the pairs eg 2:10 and set sprite 2's frame to 10

    that's the part I can't figure out how to manually "pick" a sprite instance.

    I can set an index variable on the sprites instance variables but how to pick the sprite with index 2 then set animation frame to 10 is where I can't find any documentation

  • then how do other games not pause ? in a real-time multiplayer game the pausing messes up the logic and even times out the connection. in games with multiplayer sockets need to not pause. castlot doesn't pause, evony doesn't pause, Farmville doesn't pause. so why must construct pause ?

  • instead of starting a new thread I have a similar thing I'm trying to figure out. I have 32 sprites on the layout all of which are stationary. I kneed to change the active frame of the one clicked and cannot figure out how to set the frame on a sprite based on uid of the one clicked. Trying to avoid using 32 sprites. They are for buildings and clicking on one upgrades it so I need to know exactly which one was clicked

    only been working with Construct 2 for 3 days so reply in very beginner terms :)

    Thanks for any help

  • your not understanding the issue, so let me shorten it

    The plugin is working I can get the Facebook name full name and id after login in the game.

    its when the game *FIRST* loads after hitting F5 if your *NOT* set on Facebook to auto login. if you click browser refresh all works fine. seems to be *ONLY* when running in preview mode. I loaded it up and connected via another lan computer and no issue at all.

    not sure if when in preview mode (pressing F5) its loading the browser too fast or what.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • haven't tried it with any other versions but is anyone getting the following error when previewing their games *ONLY* when you haven't checked keep me logged in on Facebook ?

    JavaScript Error!

    Unable to get property 'UserID' of undefined or null reference

    connect.facebook.net/en_US/all.js, line 75 (col 1303)

    This is ether a bug in Construct 2 or a problem in a third party plugin or

    behavior, please report it to the developer!

    I'm using no plugins or behaviors other than what come with the default project when you choose create new and choose the Facebook project.

    no graphics no sprite.

    file -> new -> new Facebook project the second I run it I get that error. I have provided my app id if you click refresh it doesn't popup and then it works. If your already logged into Facebook it also doesn't happen

    hopefully someone knows how to fix this because if I can get this thing to work I'll definitely be buying a license my game will need waaaaaaay more than 100 events eventually but right now I'm learning and experimenting so using the free version

briermay's avatar

briermay

Member since 9 Feb, 2013

None one is following briermay yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies