c13303's Recent Forum Activity

  • YAD stands for You Are Dead, and is a simulator of life after death, and is a demo for the 3DmatinEngine.

    It's a simple "3D" representation of a 2D map.

    http://webmecano.com/c2/yad/7/

    Use arrows to move and space bar to drop a snake.

  • Hi ! I aim to detect the mouse movement for a FPS game : left and right.

    So, yes of course I can use the comparison between Mouse.X and OldMouse.X to know if the cursor has moved to the left or the right . But it's not working any more one the cursor has reached the border of screen (Mouse.X stays at 0) so I can't detect that the mouse is still moving to the left.

    Does anyone think of a way to achieve that ?

    Thanks

  • there's many ways to do it, and depends of what you're calling "a door" in your gameplay.

    you can basically do it with a sprite with a solid behavior (to block movement and bullets) and a rotation behavior (to open / close) with events to make it open close and open on demand (at sprite collision ? when a key is pressed ? that's up to you)

  • You can use the tilemap method positionToTileX and positionToTileY to get tile position (col/row) from screen coordinates.

    it would be something like

    col : tilemap.positiontotileX(sprite.x)

    row : tilemap.positiontotileY(sprite.y)

  • Hi,

    My nodejs server receive this array from C2 (via websocket) , I already have parsed the data with JSON.parse()

    console.log(array)

    [ [

    [ -1 ], [ 0 ], [ 0 ], [ 0 ] ], [

    [ -1 ], [ 0 ], [ 0 ], [ 0 ] ], [

    [ -1 ], [ 0 ], [ 0 ], [ 0 ] ], [

    [ -1 ], [ 0 ], [ 0 ], [ 0 ] ], [

    [ -1 ], [ 0 ], [ 0 ], [ -1 ] ], [

    [ -1 ], [ 0 ], [ 0 ], [ -1 ] ] ]

    But for now I didn't find a way to read all the values.

    Apparently array[x][y] does not work. because array[0] returns undefined and array[0][0] makes an error.

    Can anyone help ? thanks !

  • I see, thanks Blackhornet. The JSON plugin also do it better in the end.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ho well thanks, I managed to use the plugin. Now I'm just afraid I wasted my time with dictionnaries ? We'll see.

  • Hi, using websocket, my client recevie this :

    var data =

    {"c2dictionary":true,

    "data":{

    "contenu":{

    "0":{"id":1,"what":"rock","qt":1,"owner_id":59,"screen_x":202,"screen_y":314},

    "1":{"id":2,"what":"rock","qt":1,"owner_id":59,"screen_x":202,"screen_y":314},

    "2":{"id":3,"what":"rock","qt":1,"owner_id":59,"screen_x":516,"screen_y":373},

    "3":{"id":4,"what":"rock","qt":1,"owner_id":59,"screen_x":639,"screen_y":287}},

    "return":"load_objects_return"

    }}

    It works very good. I can see the whole JSON string in console. I used to load my json message into a dictionnary (called jmessage) so it's very convenient to reach data.

    In that case I do :

    Jmessage : Load JSON from string data

    then :

    jmessage.get("return")

    is correct with "load_object_return" as value. But jmessage.get("contenu") is supposed to contain the object list :

    :{

    "0":{"id":1,"what":"rock","qt":1,"owner_id":59,"screen_x":202,"screen_y":314},

    "1":{"id":2,"what":"rock","qt":1,"owner_id":59,"screen_x":202,"screen_y":314},

    "2":{"id":3,"what":"rock","qt":1,"owner_id":59,"screen_x":516,"screen_y":373},

    "3":{"id":4,"what":"rock","qt":1,"owner_id":59,"screen_x":639,"screen_y":287}}

    but it returns 0. I believe that's because a dictionnary can not contain a object list as a value.

    So how can I do to retrieve the object list from the original string data ?

    UPDATE : I realize the nested data wasn't at the C2 dictionary format. So I changed the string like this :

    {"c2dictionary":true,"data":{"contenu":{"c2dictionary":true,"data":{"0":{"id":1,"what":"rock","qt":1,"owner_id":59,"screen_x":202,"screen_y":314},"1":{"id":2,"what":"rock","qt":1,"owner_id":59,"screen_x":202,"screen_y":314},"2":{"id":3,"what":"rock","qt":1,"owner_id":59,"screen_x":516,"screen_y":373},"3":{"id":4,"what":"rock","qt":1,"owner_id":59,"screen_x":639,"screen_y":287}}},"return":"load_objects_return"}}

    So I can load jmessage.get("contenu") as a dictionnary. But this one remains empty from data. Because it's supposed to load values and not objects ... I don't need to store the objects but I would need to list it in a loop...

    UPDATE 2 :

    I managed to load some json object data into an array.

    But i'm unable to extract it !

    In debug mode I can see there is the data into the array.

    But when I do :

    foreach X,Y,Z from Array

    log Array.CurValue

    and str(Array.CurValue) doesn't help ...

    Can you help, anyone ?

  • <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy"> Thanks a lot for this kind feedback. I've tested it with other friends and yes the tutorial isn't enough for these mechanics. I guess you didn't hurt these mobs because they have an armor (top-right screen you see life and armor of the ennemy you're aiming at) and armor means you need to have a greater firepower to hurt them. So you need to combine enough energy (let's say 3 particles together) before shooting (meaning : the 3 particles must merge BEFORE getting to the "front fire" module) and hurt a monster with 20 armor - doing 10 damage (power - armor = damage). Ho my, it sounds complicated when said like that, I really need to improve the tutorial !

    For the TTS (Text to Speech) is a feature I always liked as a electronic musician, and was amused to see it was available as a ready-made feature in Construct 2 with the user media plugin, I'm also surprised that people are not using this that much. Check the user media features : https://www.scirra.com/manual/144/user-media

    I didn't know the pronunciation was related to your system though - apparently in documentation it's related to the browser so I guess browser language. Didn't see how to force english language yet but I guess with nw.js the english should be set by default (I hope so). (i'm french myself but my system is in english - I believe the TTS sounds also weird in english ).

    Also, I agree with your market audit of modular systems <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";-)" title="Wink"> I'm also surprised I don't know more games with such systems (if someone has names, i'm interested ..) I'm basically doing a game idea I have in mind about for many years.

  • Hey ! Thanks for trying out, sorry you got stuck at the beginning. I'll try to explain here how it works, if I find the right words, I'll use in-game ..

    At the very beginning of the tutorial you don't need a hotkey, but it's true you need to aim with right click to get your character to shoot every time a "energy particle" gets in collision with the "front fire" module.

    So your first move must be :

    • press tab to open the engine
    • move the front fire module in a way it can receive green dots particles
    • keep right click down on the door until the character shoots and destroys the door

    When there's ennemies, you don't need to right click since there's an auto-aim.

    Saying this, I'm thinking about activating auto-aim for doors in a future build, it would be easier for you !

    (So far, the hotkeys are used to trigger tanks to release the accumulated energy, later in the tutorial)

  • Instead of resetting the layout, you just update the elements that needs to be updated ! That shoud involve :

    • The item you bought
    • Your inventory if there's one visible
    • Your money

    When you're playing Mario Bros, the level doesn't restart to update each time you get a mushroom or a gold coin

  • Selbst RPG is a prototype I've been working on lately for fun and now I'm looking for testers and feedback ! I don't know how far I will go with this yet but for once, I feel good with the prototype.

    Presentation :

    Selbst RPG is a top down shooter / ARPG where you have to build your weapons with a modular grid system. It has been inspired by modular music softwares I've been using in my musician life.

    Special mechanics are easy to explain : in the "engine" grid, you have generators, spawning "energy particles" that will power your "weapon" modules such as : front fire, side fire, bender (allowing you to bend the trajectory of your fire), rocket launcher (rockets can be bend too), shield, mines, teleportation, speed up bonus, health regeneration and so on ... you can build everything you like, like focus on one specific firepower or make something balanced with lots of defense and various weapon. You also have to manage the controls of it with Hotkeys (modules connected to your mouse/keyboard, releasing a signal to trigger the modules that requires it) and "effects" modules such as tank (accumulating energy to release bigger particles), angles, speed up energy particles etc...

    So as you play, you build an engine that will allow you to defeat ennemies but also resolve puzzles, you can save your builds to "disks" allowing you to reload any build at any time (because you will need to make special builds for special situations) and you will find new modules as loot on your path.

    Dev thoughts:

    As today, mechanics are the most advanced thing of the game. As you will notice, graphic design is quite minimalistic (320x200 resolution pixalated squares style is easier to deal with for me 😉 ) , background story is an abstract joke, and I've made efforts with the level design but I still need to work on it to get the prototype I'm thinking about, it still needs "big" situations and extreme cases where you really need to get the maximum of your engine with various ennemies at the same time, and I would also like to get a more extreme feeling with tons of sprites on the screen like in Bangai-o game, for those who know.

    But still, the prototype already pretend to offer the player a use of all the available weapons with dedicated situations, with a tutorial and a 4 levels dungeons with a ending boss, offering 20 minutes of gameplay for an experimented player such as me (the developper), so I guess a bit more for a new player <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";-)" title="Wink">

    My personnal questions so far are mostly : will Construct 2 (or should I say : javascript) allow me to make that big "sprite explosion" game ? I already dealt with a lot of performances issues (because I require a rock solid 60fps on an average gamer machine) and I still have plans to improve it. For example I noticed that ennemies pathfinding itself was using 20% CPU, so I know my next move will be to make a mix of custom movement and using pathfinding only when needed (10% of the time tbh). I'm also using a tiny resolution so I don't have to care about sprite animations size. A grid / tilemap system is also helping a lot. Then so far things are not doing bad, maybe I'll be able to do this.

    One other question is about the mashup between arpg and shooter. Is it a shooter or something else ? I've been thinking about making it simpler as a shoot'em'up (one path, automatic scrolling and stuff) in order to get more speed and action and less thinking beside the engine building. But I also like a bit of creative freedom so I'm thinking about levels and small challenges.

    I need you !

    You can try it the actual demo here : http://webmecano.com/c2/SELBSTRPG2/SELBSTOUI/

    Every feedback will be greatly appreciated.

    • Did you understand well the mechanics with the tutorial ? Is there modules you didn't get to work ?
    • Did you beat the game ? Did you find it difficult ?
    • Did you feel comfortable with the controls ?
    • Did you use a lot of various modules or did you stick to one thing in particular ?
    • Did you have performances issues ?
    • How about the game pace ? You want more fight and more explosions ? More shaken screen, don't you ?

    and any commentary ...

    Thanks <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">

    Presentation Video (contains a bit of spoilers so don't watch it too carefully if you're willing to play the demo)

    Subscribe to Construct videos now
c13303's avatar

c13303

Member since 1 Sep, 2013

None one is following c13303 yet!

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies