andreyin's Recent Forum Activity

  • Yes you can, using the greenworks plugin. That thread is completely messy though, and no one knows for sure how to get it to work sometimes. Ashley is holding off an update until a proper release of the new NW which will (hopefully) have less problems with hiccups.

    You have to use Node-Webkit 0.10.x if you want it to run well and use the greenworks plugin. You can do so by either looking around in that thread or installing a old version of C2 that came bundled with it, then you just have to replace the files in the NW 0.12.x folder. After that you can install and try the plugin.

    Also you cannot preview while using the plugin, you'll have to export your game to try it out. Also read that threads first post to see the instructions, the .txt part is important.

  • I've been thinking about this in the past and I think I figured out a way, but it still seems a bit "hacky".

    The way I'd do it we would have 3 objects. The shadow, the object the shadow should cast from (we'll call it the player), and an invisible object that would bind the two together.

    Then what you'd actually be controlling would be this invisible object, not the player. This way you could pin the shadow and the player to this object, and when the player wanted to jump you'd unpin him, make the jump, then pin again when he's done.

    About families, if you want to create the same shadow sprite to each object of the family, it's simple - at the start of the layout, create a "For each (ordered)" for the family. This will run through each object in the family that's currently in the layout, then you can use actions like "For each (ordered) familyname -> create "shadow" at familyname.x familyname.y -> Pin "shadow" to familyname.x familyname.y".

    Be sure to order it by familyname.iid too.

    Of course, there's probably a better way, but that's how I'd do it.

  • Conditional expression(under operators).

    object.X > player.X ? 1 : -1[/code:2mxk200a]
    

    Oh wow that's handy. Thank you!

  • blackhornet

    Err after some testing I still can't get what I want. Sorry, I'm really bad at math!

    This function allows me to get a -1/1 position based on the 0,0 in the canvas. I've been tweaking it to get a -1/1 position based on two objects, but I don't see how...

    Edit: Nevermind, got it. I swear I tried it before but it didn't work, tried it again now and it did...

    I used round((player.X-door.x)/abs(player.x-door.X))

  • round( X / abs(X)) will give you -1/+1.

    Nice, exactly what I needed! Thanks!

  • Hi everyone,

    This sounds simple enough but I can't find a way to get a -1/1 by comparing positions.

    For example, there's a player object, and when it collides with something I want to compare their X positions so if the object.x is > than the player.x, I get a 1 and if it's not I get a -1.

    Any idea how to achieve that? It's probably something simple but I'm stumped!

    Thanks!

  • It should be possible using the Sprite object, AJAX object and this plugin: plugin-json-import-export-generate-edit-inspect_t100042

    Using Google's old image search API (found here https://developers.google.com/image-sea ... uide?hl=en) you can use AJAX to request a link with the search, parse it through the JSON parser plugin and then get the image links that you can use on the sprite object.

  • Looks really good!

  • andreyin Hi yes interestingly Crosswalk seems to get slower as they update The Intel XDK. Also I use Crosswalk Build not the regular Android Build that is always faster onlycreates a bigger file size.

    Check out these tutorial below they will be helpful you just need to optimize your project and you should solve a lot of slowing down issues.

    https://www.scirra.com/tutorials/298/pe ... bile-games

    https://www.scirra.com/tutorials/598/op ... nts/page-1

    Thanks, I'll take a look!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I had some trouble with this too, ended up I was installing the wrong type. When you finish compiling there should be two different versions - x86 and ARM. Be sure to install the right one.

  • andreyin Sorry man, I didn't mean to be rude or ungrateful - yet, I was. Sorry about that!

    Yep, I already took the opportunity to speak over there, too.

    No problem, I think I came out a little strong too. I really want to see how this turns out though, please post it here if you find anything about it!

    I tried searching on their old google group about it too but apparently it's closed to the public or something. Too bad, there was a LOT of good info there...

  • Node.js is delivered within Construct 2, so I think it's not that simple.

    We're talking about credit card information here.

    What? I'm saying that Scirra doesn't actually make NW.js (nor it's bundled by default with C2 anymore).

    Your best bet is asking them directly, maybe using their Google Group.

    https://groups.google.com/forum/#!forum/nwjs-general

    I'm not saying what you're saying is not important, but you should talk to the right people about it.

andreyin's avatar

andreyin

Member since 11 Jan, 2010

Twitter
andreyin has 1 followers

Connect with andreyin

Trophy Case

  • 14-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x3
    Great Comment One of your comments gets 3 upvotes
  • x2
    Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

21/44
How to earn trophies