hoanganh17's Forum Posts

  • .cap are not compatible with C2 (which only opens .capx and .caproj).

    The tutorials for C2 are in the ... section of the site.

    You can also check the links in my signature for more informations and stuff about/for C2.

    Thank Kyatric

    Please tell my where I can down load CC to research about techniques of some very interesting like Fighter...3D tank...etc.

    I wanna apply them in C2 but have no clue..

    Best regards

  • I am new in Construct2 and very interesting with game creation in HTML5.

    Problems are while I am looking for solution from old tutorials in this forum -> a lot of useful things compressed with old version of Construct (under .cap file). I did try to open them but no way...:D.

    Could you guys tell me how to reuse this resource...?

    Thank in advance.

  • "Javascript error!

    SyntaxError: JSON.parse: unexpected character

    localhost/My_plugin.js, line 134"

    -------------------------------------------------

    I develop my Own plugin to connect my Gamer to server via webSocket. Everything working very smooth and stable in r95. But runtime err appear after I upgrade to r103.2.3404349. I did try the test but could not define problem. For example: If I write only JSON testing with bellow JavaScript code, it is working ok:

    <font color=blue>var _data = '{"firstName":"John" , "lastName":"Doe"}';

    var obj = JSON.parse(_data);                     

    alert(obj.firstName);</font>

    Once connect to my webSocket server, bellow message popup:

    <font color=red>"Javascript error!

    SyntaxError: JSON.parse: unexpected character localhost/My_plugin.js, line 134"</font>

    But actually with R95 - this problem never happen.

    My server using windown2003 and websocket server base on Fleck at:

    github.com/statianzo/Fleck

    Please help me..I don't wanna stay slickly in R95 forever...:(.

    Best regard..

    PS: the declaration of websocket in my own plug in like that

    <font color=blue>

    if(typeof(WebSocket) == "undefined" && typeof(MozWebSocket) == "undefined")

    return;

    var socket = this.socket;

    wsImpl = window.WebSocket || window.MozWebSocket;</font>

  • Dear all plugin developers

    How do I declare a javascript libs in my own plugin...for example..jQuery1.8.2..

    Thank in advance

  • I got a playing card game.

    Evething fine but when browser display my game in IPad, onclick event of mouse object did not work......

    I really need suggestion for solution...

    Thank in advance.

  • You should replace your TextBoxAddon by official TextBox and get Event when KeyBoard Enter fire...

    It is working well for my game...:D

  • R0J0hound

    Thank to much for your reply. Actually, my game until now have more than 150 events and I really confuse about it's performance...??

    Number of objects around 50 so and there are no way to avoid loop..??..:(

    I got another question...What is faster...??? Using native system expression/event/condition or try to put some of them in my own plugin...??.

    I want to put all of "family" object into MAX function and get max IDD like JavaScript..:D

    Thank a lot for your help

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Dear all

    I am new in Construc2 and have very simple and dump question:

    How do I using Max expression ....???

    Problem is: I have many object and each object have it own IDD. How do I get object have highest IDD to pick and destroy..I don't want to using for - loop to save game performance...

    Thank in advance

  • So...sorry everyone...this is my problem...I put c2runtime in div and post it in to ASPX form....:D...

    I really forget postback.....

    Problem is fixed but...Put c2runtime outside of ASPX Form..

  • Once more time I got problem with Return-Enter key (code =13) with official text_box plugin.

    In preview mode...everything seem ok but problem comes when I export my project in server...

    In my game...I have a chat feature and I am using official text_box plugin to get message input. Message will be send to other via webSocket...etc..

    My problem is: I don't want to use a button to trigger send command, I want to user Return-Enter keyboard (code ==13) to save user actions and place of screen. In preview mode...this was working well as I expected but after deployment-export, once I press Return-Enter..whole my page refreshed...meaning game must be start again and player who press Return-Enter keyboard lost points....

    Have you got any experiences for this case ...I need your help in urgent...

    Sorry about my bad English

    Thank in Advance..

  • I got solution, replace TextboxAddon by official Textbox...it's working perfectly for my Game

  • Dear Paradox

    There are problem1...

    1. Keyboard object don't recognize the "Enter" press event once your focus is in textbox addon.

    2. Type of textbox addon in html is differ from canvas...:(..

    You can test this case very easy. Add textbox addon and Keyboard object to check their behaviors while "Enter" is pressed...

    Thank a lot...

  • Thank too much R0J0hound -> this is solution I am looking for...you are rock.... <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Dear all experts...

    I am building chat system for my game and I dont wanna create a send button to save GUID. I believe that I can fond "Enter key press = key code 13" for textbox addon but until now it's inefficiencies.

    Could you guys please help me to know how do I trigger event once KeyCode = 13 (meaning that Enter is pressed) in textbox addon

    Sorry about my English

    Best regards