ome6a1717's Forum Posts

  • I don't think this will work if you copy multiple objects on screen - you would have to set the x/y for every object.

  • Just thought I'd add a feature request to be able to copy an object(s) and paste it in the same X & Y location.

  • Ah you beat me to it. Thanks, Vee!

  • Figured it out - can't have a "For Each <SPRITE> above a key press/button press :)

  • I'm trying to set my game to also work with a gamepad, and while this works fine with the gamepad, after switching 70% of the "on keyboard" events to "on keyboard code -OR- on gamepad index", I'm getting the following error when pressing ANY button on the keyboard.

    <img src="http://stevemazzaro.com/error.png" border="0" />

    I'm stumped. Anyone have any ideas?

  • My strings weren't exactly Set Array to "text", it was set Array to Sprite.AnimationName. That could have been causing the issue.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks guys!

  • Nathan you are a savior! Just adding str for the text array numbers seem to have fixed it. It's just strange that it worked in every browser until I exported it to a node-webkit.

    Just curious, Ashley; what browser does the node-webkit use? Or is it based on which one you currently have set in your project?

    Thanks guys!

  • Sorry to be pesky about this, but I've checked my code quite a few times, and I'm still having an issue. Basically I'm trying to save a few arrays with both numbers and text.

    I have 2 separate arrays, one giving me an issue and not saving the text, and the other works perfectly. The codes are the EXACT SAME aside from being a different array and I've now tested them and they work on Chrome, IE, Firefox, and Palemoon, but when I export to Node-Webkit, only one of the arrays saves the data appropriately.

    Have there been issues like this using node-webkit?

    Thanks!

  • So I was able to fix everything in every browser, however some things are now broken when I export to Node-Webkit.

  • Actually I figured it out using an array to set the keycodes and then using "On KeyCode, Array.At(X)". My only question now; is there a list of every key code? I want to be able to have the player set "A" to move left, but I want the text to show "A" instead of "83 (or whatever number it is)"

  • I'm trying to figure out how to implement a control system so you can choose the controls of the game IN the game (ie. the player can go into the options and set Move Left to "V", and then set the Move Left event to <if "whatever_key_is_set_to_move_left" is pressed>)

    I'd imagine it's somehow done with keycodes & variables, but there are no key code tutorials that explain how to use them.

    Any help would be greatly appreciated!

    Thanks,

    Steve

  • Part of this is ignorance on my part, but I have my game well underway, and noticed something strange when I exported to the node-webkit. I looked a bit online and found to test the game on multiple browsers, so I did.

    Can someone explain to me why my game works perfectly in the browser I've been testing in, but the second I switch to a different browser, half of my events just flat out don't work? I've been using palemoon, but trying internet explorer, simple things such as changing a variable isn't working. I'm now getting the game to crash at certain points. Is it not possible to run large games using Construct 2 because of this issue?

  • Would I still be able to use the NPC family this way?

  • Hey Vee,

    I currently have an exclamation point sprite pop up when you're < 100 pixels from an npc. The pick nearest works with the dialog, but unfortunately doesn't set the ! sprites visible/invisible correctly when I use 'pick closest NPC'. That's why I was hoping of possibly figuring out a way to use Pin UIDs, but to no avail.