Search found 15 matches

by alex_h
06 Dec 2011, 09:44
Forum: SFS2X Questions
Topic: Intercept object message within extension
Replies: 5
Views: 8518

Yup, that's exactly what I have set up - it seems to be working perfectly so far!
Thanks for your reply.

cheers,

Alex
by alex_h
05 Dec 2011, 14:22
Forum: SFS2X Questions
Topic: Intercept object message within extension
Replies: 5
Views: 8518

OK, I have this working using a request handler on my room extensions now.

Seems a bit weird that I can't add an event handler to my room extension to catch object messages though? Or at least if I can catch object messages I can't see how I could access the SFSObject that holds the message data.
by alex_h
05 Dec 2011, 09:12
Forum: SFS2X Questions
Topic: Intercept object message within extension
Replies: 5
Views: 8518

The reason I want to use object messages rather than user variables is that I want to send a timestamp with each message (the number of millliseconds since the start of the game) in order to help keep things synchronised as far as possible. I can then compare the remote time and local time with each ...
by alex_h
02 Dec 2011, 17:19
Forum: SFS2X Questions
Topic: Intercept object message within extension
Replies: 5
Views: 8518

Intercept object message within extension

Hi,

I have a zone extension and a room extension written in Java.
Inside my game room (in flash), my users send object messages to each other that describe their x & y co-ordinates, movement vectors and a timestamp.
I have now found that it would be useful to also store the x & y values as user ...
by alex_h
22 Nov 2011, 14:16
Forum: SFS2X ActionScript 3 API
Topic: UserVariable or ObjectMessage
Replies: 1
Views: 5287

UserVariable or ObjectMessage

I have a game with 4 players. I want each of them to broadcast the following properties to the other players:

x position
y position
x motion vector
y motion vector


I intend for each player to broadcast updates on events (eg motion start / change direction) and also on a set interval (maybe 500ms ...
by alex_h
22 Nov 2011, 12:22
Forum: SFS2X ActionScript 3 API
Topic: ping interval
Replies: 5
Views: 10085

ping interval

Is it possible to set the time interval for the lag monitor? It seems to be set at 2 seconds between pings, but I'd prefer it to be 5 seconds. I've had a good rummage through all the documentation I could find but can't see any way to adjust the timing for the PING_PONG event.
by alex_h
18 Nov 2011, 16:24
Forum: SFS2X Questions
Topic: Zone Extension > Room Extension communication
Replies: 2
Views: 5329

OK, just found the 'handleInternalMessage' method of BaseSFSExtension - guess this is the answer to my problem!
by alex_h
18 Nov 2011, 16:16
Forum: SFS2X Questions
Topic: Zone Extension > Room Extension communication
Replies: 2
Views: 5329

Zone Extension > Room Extension communication

Hi there,

I have created a Zone extension .jar file that handles getting players into a game room and then starting the game once 4 players are present.
I've also made a Game extension .jar file that starts up a scheduled task once the game begins. To do this I need to call a 'startGame' method on ...
by alex_h
18 Nov 2011, 10:24
Forum: SFS2X ActionScript 3 API
Topic: How to handle multiple room instances
Replies: 3
Views: 7353

thanks rjgtav! Yes, funnily enough I was just considering the int - max value issue. Thinking about it, as long as I make the looping occur at a sufficiently high number (more than the number of rooms likely to be open at once) then it is going to avoid any problems, it doesn't have to check for 2 ...
by alex_h
17 Nov 2011, 14:31
Forum: SFS2X ActionScript 3 API
Topic: How to handle multiple room instances
Replies: 3
Views: 7353

To answer my own question - I suppose that if I handle the game room creation via a Zone level extensions (as per the answer to my previous post) then I can just have an integer within my Zone extension class that is incremented each time a game room is created, and append this to the name. I guess ...
by alex_h
17 Nov 2011, 13:02
Forum: SFS2X ActionScript 3 API
Topic: How to handle multiple room instances
Replies: 3
Views: 7353

How to handle multiple room instances

Say I have a game 'Game A' that allows only 2 players. So player 1 arrives in the lobby, and decides to start a game by pressing a button.
This triggers a room to be created, called 'game_a' and player 1 joins that room.
Now player 2 arrives in the lobby, decides he also wants to play Game A and ...
by alex_h
17 Nov 2011, 12:13
Forum: SFS2X ActionScript 3 API
Topic: Joining a game room
Replies: 2
Views: 5830

Ok, thanks Bax - I'll have a look at writing an extension to handle this then - cheers.
by alex_h
17 Nov 2011, 11:22
Forum: SFS2X ActionScript 3 API
Topic: Joining a game room
Replies: 2
Views: 5830

Joining a game room

Hi there,

I am building a set of games with a lobby area that users can navigate around with avatars. I'd like to allow a system of game entry similar to that used in club penguins 'Ski Hill' sled racing game, whereby the user chooses to start or join a game by navigating over to an onscreen game ...
by alex_h
27 Feb 2009, 13:18
Forum: OpenSpace v1 discussions and help
Topic: Framerate drops to 0 when I move the mouse over OS.
Replies: 11
Views: 22143

Cool - thats good to know. Thanks for the prompt response!
by alex_h
27 Feb 2009, 13:05
Forum: OpenSpace v1 discussions and help
Topic: Framerate drops to 0 when I move the mouse over OS.
Replies: 11
Views: 22143

Hi there,

we had a similar problem in an adventure game built in AS 2.0 a little while back. In the end we found that deleting the onMouseMove property of the prototype of the Movieclip class resolved the issue (setting it to null did not work - it must still have been doing something!) I don't ...