IronRick's Recent Forum Activity

  • farhanx yes C2 support AJAX. You will need to code the server side logic with another language (such as php, .net, etc.)

    https://www.scirra.com/manual/107/ajax

  • rogerfgay Here is the link to the SignalR documentation: asp.net/signalr

    SignalR can be deployed on IIS web server or built in as a self-host server on OWIN: owin.org

    To enable WebSocket protocol, you will need Windows 8 or server 2012 and IIS 8 setup. You can use SignalR on older OS/IIS but it will then fall back to using long polling instead.

    I do agree with your comment on Microsoft C# for game development but since my coding background is on the Microsoft .NET framework for my work, I tend to use it for my server code for personal use as well.

  • phuse, I am currently working on a C2 plug-in that would support the ASP.NET SignalR library. SignalR support websocket but also long polling in case the user's browser does not support websocket.

    The server backend would be all C# but the front end can support JavaScript (a Construct 2 plug-in).

    So far, I have been able to connect to my SignalR server from C2. I am now looking into connecting into server functions and vice versa.

    I will post a new plug-in thread as soon as I do have a working prototype.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • zatyka Thanks for the info, that is very useful information.

    I am working on a similar game type mechanic for a regular playing card game, such as a standard 5 card draw.

    For the server side, I will be using the SignalR library for Microsoft .NET. I am still in the early prototyping but my goal is to integrate the SignalR library for server side events with C2. The client side for SignalR can be coded JavaScript.

    The big advantage of SignalR is it will use the best available transport method for the user browser. It can use WebSocket or Long Polling without any different coding.

    I will do a new posting when I will have a completed prototype.

  • It all depend on what you want to achieve. It can probably be done with events, functions and lots of variable.

    If you know some JavaScript coding, I would suggest looking at building your own plug-in if you would like more sophisticated AI.

  • Entry

  • I have found some algorithm already coded in JavaScript.

    I will be writing a Poker Hand type plug-in and post a version in the plug-in section if anyone is interested.

  • Does anyone have done some experimentation by developing a poker like game with Construct 2?

    I would be interested in algorithms used for the hand evaluation (flush, straight, 3 of kinds, 2 pairs, etc.). I am still not sure if it would be easier to build a plug-in or if the hand evaluation can be done with the C2 events.

    I am using right now the data representation used in this thread but open to change if there is an easier way for hand evaluation.

    http://www.scirra.com/forum/randomized-an-array-for-a-deck-of-cards_topic45833.html

  • Nice art, I like it. Keep up the good work!

  • I like the concept, it's fun to play. Nice work!

  • Hi,

    Here is a small bug I have found in the editor.

    I do have a Text instance variable that already contains a initial value of "testing". I would like to reset the value to empty but it does not save when I empty the box.

    Here are 3 screenshots steps:

    <img src="https://dl.dropbox.com/u/80240197/CAPX/var1.png" border="0" />

    <img src="https://dl.dropbox.com/u/80240197/CAPX/var2.png" border="0" />

    <img src="https://dl.dropbox.com/u/80240197/CAPX/var3.png" border="0" />

  • Here is a capx I have created to reproduce.

    Just rename one instance variable of the sprite and click on the function call event.

    dl.dropbox.com/u/80240197/CAPX/Function_bug.capx

IronRick's avatar

IronRick

Early Adopter

Member since 13 Mar, 2012

None one is following IronRick yet!

Trophy Case

  • 12-Year Club
  • RTFM Read the fabulous manual

Progress

13/44
How to earn trophies