AJTwombly's Recent Forum Activity

  • Jayderyu was right - I feel really dumb for not seeing it. In attempting to solve an error that kept popping up (explained below) I changed the original formula I had to reading one instance ahead, hence defaulting to zero and creates the behavior you see there.

    The error had to do with incorporating the line drawing into the Route placement event - even as a sub-event. It has to be separate.

    Regardless! It works now, thank you all for your help! I really appreciate it :)

  • I'm trying to draw a line between points that are created by tapping (or clicking in this case) on the screen but instead of it creating a chain of lines it draws a line between the first point and each other point.

    It does this:

    <img src="http://i.imgur.com/WZuR3Wwl.jpg" border="0" />

    Instead of this:

    <img src="http://i.imgur.com/xaKDkZ8l.jpg" border="0" />

    Here's the Event Sheet:

    <img src="http://i.imgur.com/L2oL125.jpg" border="0" />

    Here you see the "On any Touch Start" and the For loop that SHOULD draw a line between each Route that's placed.

    NavPoints is a global variable that starts at -1.

    I don't know how common-knowledge it is but if you put a number in parenthesis before .X or .Y it references the specific Instance ID. So Route(NavPoints).X is the X position of whatever instance of Route.

  • So I've started looking into the Pathfinding behavior as a solution but I can't find any tutorials on the subject (plenty on Pathfinding for other uses, and a really good one about creating enemies with a line-of-sight behavior, but none about using pathfinding as a railroad.

    I think if I do find some way to accomplish this I will make a tutorial, regardless I'm going to continue chronicling my attempts here. If anyone has any insight please let me know.

  • Hello everyone! Not my first post, but it has been years (and I think it was before Construct 2) so hello again :)

    On to business.

    In very simple terms I am trying to create a touch-screen interaction where you can tap between two points and create a direct line, or tap and drag to draw a more complex one. Whichever method you take it should create a single line.

    The purpose of this is to build a path for another sprite to follow with straight lines offering the ability to build up speed and twisty ways allowing the player to avoid obstacles.

    I looked through the FAQ but the only thing that looked promising was checkpoints, but that's pretty fundamentally different.

    So far I've managed to use the On Any Touch Start and On Any Touch End Events to create waypoints, and then the Is In Touch Event to draw a series of points along a traced line BUT I don't know how to (or even if I can) connect them so they look more like a line and less like a bunch of independent points. Then from there how to put them into an array so the player's sprite can follow them in order.

    TL;DR: How can I use the Touch object's Events to draw a line (by tapping or dragging) that a sprite will follow?

  • You're all very kind, I really appreciate your time. I wish I could return the favor somehow. Thank you.

    I posted all 3 of my game attempts on Box.net

    I haven't credited the Sprites or anything yet so please: don't think they're mine. All three of these are mainly to satisfy my own strange sense of fun than anything else.

    Halo Game: http://www.box.net/shared/p4f85jbx6a

    Zelda Game: http://www.box.net/shared/35a57ttg0l

    40k Game: http://www.box.net/shared/zp8auefbqb

    It seems likely that they are all the same issue, I would really like to know what I managed to mess up (It always seems so simple until it doesn't work...)

    Thanks again,

    AJ

  • Hi there, I've only posted once before about an issue that I was having with one of my games involving some trouble I had with the program crashing every few minutes. And now I am back again with questions about animations.

    I have made three different games now (well... tried to, most of them are fairly incomplete for several reasons) and in each one I haven't been able to get the character animations to work properly. The only success I had was with the Jump animation for one of my games (it doesn't work so well for the other one that has a jump feature) and the walk animation for my enemies in one of my games (the others don't have fully-working enemies yet). What I care about the most is that the player himself does not obey the rules I set down for animation.

    Anyway... I have a few different problems.

    First the walk animations- they don't tend to play when I move, the closest I can get is in my first game the character goes to take his first step and then freezes when he starts moving, only to return to his ready stance afterwards.

    Second the grenade animation- It would just look like he was throwing his grenade at LIGHTNING speeds. But frankly that's not what I was going for... I can't seem to make it finish out the animation before SNAPPING back to the ready stance or walk animations.

    I don't know whether I am just screwing up the commands or whether its just broken. Either way I would like an answer. If you could shed some light on my issues I would be grateful.

    Thanks for your time,

    AJ

  • Is the LOS behavior actually DOING anything? Cause I put it in there in hopes that it would make the enemies start shooting at you when they saw you but I didn't really see an option to make that work. Personally I think removing it seems like the most economical thing to do.

    So THAT's why the guy recoils... I hated that! I didn't even see that the bullets were solid! Thanks! As for the other sloppiness, yeah I expected as much. The code didn't look efficient or elegant so I figured it probably wasn't all that smart. I'll try to streamline things a bit next time I get a chance to really work and see if that might help the bug.

    Collision bug? See this is the problem when you're new, there's no way to know about these things beforehand. I assume 99.42 is the latest version and they just haven't fixed the bug yet? Regardless, when I run the debugger it seems to tell me that it crashes more when things spawn then when things collide.

    Bugged event? It tends to be various random events that cause the crashes rather than any one given event. Although that might just mean they're all bugged but I really hope not.

    AJ

  • Yeah I really don't know what's going on either. I was really hoping this would be fairly easy... but as always it seems to be fairly complex.

    I posted the .cap on Box.net, this is the link: http://www.box.net/shared/y9sfhv8ihi

    Thank you all very much for your time and your help

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I tried to post the .cap but I got an error message that said that the max size of a file posted under the "Uploads" forum was 256 KiB and the file size is 1MB. Any way around that?

    Anyway I ran the Debug feature like 100 more times and each time I traced the action that caused the crash to something spawning. Again it was anything from enemy reinforcements, to muzzle flares, bullets etc.

    I don't have two-pixel collide (to my knowledge, I didn't see any setting for it though. Like I said... I am quite the noob )

    I'm also having trouble getting the walk animation to play when the player is walking and stop when the player stops.

    Aaand I decided to scratch the mini-map because I couldn't figure out how to have the enemies appear on it; that's not so important to me though. The walk animation and the crashing are definitely more important.

  • Hi there, this is my first post on the Scirra forums and I have just started using Construct. I made a shooter based on the Ghost Shooter demo that comes with the download and I am having loads of trouble with crashes.

    They all seem to happen either when things spawn. It's literally anything that spawns; from bullets from the Player's gun, the muzzle flare that is associated with it, the NPC's guns going off, just the spawning NPCs or when they die and the NPC's body spawns.

    I'd be able to give more specific information if I knew what sort of thing could be causing the crash. Anyway I'm just looking for someone to ask a few questions and maybe give me a hand cause I'm at a loss and I need this to be ready soon.

    Thanks,

    AJ

AJTwombly's avatar

AJTwombly

Member since 23 Oct, 2009

None one is following AJTwombly yet!

Connect with AJTwombly

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies