AmpedRobot's Forum Posts

  • Hey, guys.

    Trying to add one last mechanic to the game for now, so far unsuccessfully.

    http://www.darksunpictures.com/public/S ... g_Ship.zip

    Basically, after touch, I would like the square (ship) to keep rotating to that angle set by the touch/mouse click.

    So far you have to be In Touch for it to reach that angle.

    Thought it would be more fun if the ship kept rotating on its own after touch to that touch point.

  • Hey, try a Cordova export, then use Adobe Phone Gap private build, enable debugging, change version id to letters in config file if not in capx. Works like a charm for me.

  • Ashley

    If you go the image point route or even the variable route, there seems to be compression (ignoring of some image points/variable offsets) when you reach 90 and 270 degree rotation. When you think about it, it sort of makes sense because then an x offset should be a y offset, but with image points it should work and it doesn't or maybe it should be programmed in for both methods? I found a way around it.

    Has anyone found a way to make the object continue rotating after just a tap to that position? Not sure how to program that in. Tried various things but it screws up other programming. So far the way that capx I designed is posted the square will only continue rotating to the clicked/touched point when you hold it.

  • Dude, you are my God.

    I will shower you with CGI items when any of the Dark Sun games come out.

    I was about to start work on the slow and tedious version.

    So glad I checked one last time.

    Believe it or not I tried the exact same thing and it wasn't working at all. It was making existing shots turn and other weird things.

    Admittedly, my shot code was a lot more complex, so I had a lot more stuff going on over there.

    Also, I was using a much older version of Construct 2.

    But great to know this works! Will save me an unbelievable amount of work.

    Cheers!!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • EDIT: I think I solved this. I think I could do this with Spawn Object and a lot of different image points. It's an inelegant solution and it will bloat the code a little, but it should work. On the other hand, if there's a quick way to do it with Create Object, that's a functionality that should be programmed in because there you have the X and Y coordinates and you could do quick position randomization offsets via a variable. Plus it requires a lot of work from the user for what should be just a quick variable fix.

  • Ok, here's the capx.

    (Please ignore web site. It's very temporary. Not a plug or anything.)

    http://www.darksunpictures.com/public/Layouts.zip

    Basically trying to make the shots follow ship (square here).

    You can click/touch anywhere to rotate ship.

    Think I have to use Create Object as opposed to Spawn Object as trying to position the shots with offsets versus player ship position and I have some randomization involved.

    This is very easy with Spawn Object, but it uses image points and an offset versus image point seems to work only in the Y?

    Any help greatly appreciated.

  • Duh. I always post a capx if noone replies.

    No reason to be so rude and trollish. If I recall, you always do this and you're always wrong.

    And it was very specific. Anybody who's familiar with this would be able to diagnose this in seconds.

  • Err, having problem with my spaceship shots here. Recoding new version.

    Originally they followed rotating ship no problem, matching angle etc w bullet behaviour.

    In new version, I'm using Create Object though and can't figure out how to make the shots match the player ship angle.

    They do weird things if u set angle to player ship, etc. Pinning does not work.

    Not sure what I'm doing wrong. Think I would rather use Create Object for shot spawning due to position offset possibilities vs just Spawning Object at image point?

    Edit: You can actually do position offset it seems from the imagepoint also with a variable, but it only does a Y offset if you do a -value? Looking for X offsets.

  • Looks cool. Love the retro look. Might be really addictive.

  • Oh, thanx for replying (didnt get notification).

    Ah, it was just stupid sprite flip issue. Took 3 seconds to solve by flipping all animations 90 degrees.

    If you need help with multitouch, just let me know. I'll share code. It's pretty easy.

  • Using multi-touch with touchIDs and rotate object towards position x, y. Object seems to do weird flipping on other side. Also, it seems to follow the sprite line from origin pointing to the right, loosely, when object default angle is set to 0, and rotation is not smooth. Is there a quick workaround without redoing all the animations to make that sprite line point up (normally you'd have to flip the angle to 270)? But that would still not solve the flipping and the smoothness.

    Has anyone been able to find a solution?

    Capx?

  • Hey, guys.

    Trying to do a first test phonegap build, Android version, via the Adobe service.

    How do I fix the unique identifier error?

    Hello.

    I'm doing a Construct 2 export using Cordova.

    All I have in the config file is this:

    <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="1" version="1">

    What the heck am I supposed to change or what line am I supposed to add?

    I do have a web site.

    ---

    Changing version to any letter combo seems to work.

  • Well, I've been doing my game in pieces, starting to combine layouts, and it's bugging horribly on loading.

    First loads fine.

    Then you reopen project and it always loads the second layout, not the first, even though the correct 1st layout is specified to load by name (not default). I've noticed this years ago in the beginning too, but I thought it would go away with future releases. I'm using the latest release, not sure how to save it back to the most stable release.

    Anybody else notice this?

    Have a solution?

    Why is this happening?

    Alas, using Chrome and have no choice but to use Windows 10 given my processor rather than the outdated operating systems Construct 2 is officially approved for.

    It's a rather simple capx with some animation and music, always worked flawlessly until I added the second blank layout on button clicked.

    Don't want to give away the capx and making a simple new one from scratch, there is no point.

    ---

    Eh, NVM for now.

    Think I figured it out. It seems to load the active layout you have clicked, irregardless what's specified in project properties, so if you click the starting one, it seems to load correctly.

    I believe we can disregard any differences between win7 and win10 Chrome stops being updated for win7 or win7 can't benefit from specific functions.

    Especially since in C3 it's all browser based and even works fine on a ChromeBook

    The only major changes between win10 and win7 that are coming is new CPU support for AMD Ryzen, which I doubt will affect browsers. Someone will probably at the very least make an open source driver for ReactOS that may work with Win7 just fine for that.

    https://www.reactos.org/

    Huh, Chrome stops being updated for Win7, the op system C2 is approved for???

    AmpedRobot don't jude construct 2 by a formatting , C2 is wayyy Greater to focus on handling formating , you can deep search by your self or learn some javascript , it's your problem not the engine problem , her is the solution in one line

    hébergeur d images gratuit

    Browser.ExecJS(YOU_NUMBER_VARIABLE&".toLocaleString('en', {maximumSignificantDigits : 21})")

    Don't be telling me what to do.

    Ha ha.