30FootForest's Forum Posts

  • Thank you. I am currently installing the beta because I can't open your capx in the stable release.

    I am looking forward to seeing your suggested solution and playing more with Loops! :o)

  • I posted this problem in the forum but haven't had any responses so far. I am willing to pay a little for some help, or I'm kinda stalled and frustrated.

    Note: I am new to Construct and game dev in general, so excuse any bad descriptions:

    ---

    I want the user to draw lines on the screen by swiping. A general up or down draws a vertical line, a horizontal swipe draws a horizontal line.

    These are the two major problems I'm having:

    1) The lines do not stop accurately when colliding - especially after hitting the "speed button". The lines often overlap the other lines (which will not work in my game. They must end exactly on the line they collide with since I need those specific points to calculate the different areas of the rectangles created)

    2) The user cannot draw mulitple lines at the same time (the user should be able to draw at least a second line while the first line is still being drawn, but currently the first line stops when the second one is started)

    CapX file is here:

    dropbox.com/s/i8p5b41or8v8ytx/Drawing-Line-Issue.capx

    ---

    Part 2:

    I need a way to calculate when sprites are boxed in by the lines.

    ie. if the user drew 4 lines (4 sides of a box) I'd need to know the area of the box and what sprites were in it. Then, if the user drew another line through that box it would divide it into 2 boxes. I would then need to know the area of both boxes and what sprites were in each of them.

    I was going to find the area of each boxed in square by noting the locations of the ends of the intersecting lines. (but since the ends of the lines are often over the lines, it makes for a very inaccurate measurement).

    So, in a nutshell, I need a way to draw the lines more accurately, AND, calculate when an area has been "boxed in" and what sprites are in the boxed in area?

    ---

    If anyone wants to tackle this, please reply or email me with a quote: mhouston (at) gmail (you know the rest ;o)

    thanks.

  • ok. one more try...

    If I can't get the fences to draw more accurately, I need a way to calculate when sprites are boxed in by the lines.

    ie. if the user drew 4 lines (4 sides of a box) I'd need to know the area of the box and what sprites were in it. Then, if the user drew another line through that box it would divide it into 2 boxes. I would then need to know the area of both boxes and what sprites were in each of them.

    I was going to find the area of each boxed in square by noting the locations of the ends of the lines. (but since the ends of the lines are often over the lines, it makes for a very inaccurate measurement).

    Is there a way I can either draw the lines more accurately, OR, calculate when an area has been "boxed in" and what sprites are in the boxed in area?

    TIA!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • BTW, I've never used Dropbox this way. Is the link to the Capx working?

  • Total amateur here... I've been working on this problem for weeks, but can't solve it.

    I want the user to draw lines on the screen by swiping.

    These are the two major problems I'm having:

    1) The lines do not stop accurately when colliding - especially after hitting the "speed button". The lines often overlap the other lines (which will not work in my game. They must end exactly on the line they collide with since I need those specific points to calculate the different areas of the rectangles created)

    2) The user cannot draw mulitple lines at the same time (the user should be able to draw at least a second line while the first line is still being drawn, but currently the first line stops when the second one is started)

    CapX file is here:

    dropbox.com/s/i8p5b41or8v8ytx/Drawing-Line-Issue.capx

    If anyone can help me with these 2 issues, I'd be very grateful!

  • Ok, I finally figured out how to use the TiledBackground to make a sprite with a recurring texture. But then I had an issue with the lack of Origin Points. But then I discovered the HotSpot property, and all is well with the world.

    Thanks for pointing me in the right direction. I'm slow at this stuff. But I'm getting better!

  • I still haven't solved dthis

  • Not a bug - human error. figured it out finally :0)

  • Hi,

    I'd find it very helpful if instead of "Construct 2 - event sheet 1" at the top of the Construct 2 screen, it also included the name of the file I'm working on.

    ex. Construct 2 - MyGameName - event sheet 1

    That way I get less confused about which version of the game I'm working on!

    Thanks for listening :o)

    And thanks for Construct 2!

  • I created my first animation on a sprite.

    When I preview the animation it works perfectly. But when I run the game, the 2nd frame displays beneath the first frame, etc. So the 10th and final frame is not visible below all the other frames.

    Is it displaying in the wrong z-order?

    Or, is each frame supposed to disappear before the next frame displays?

    It looks perfect when previewed.

    What am I doing wrong?

  • I have tried repeatedly with the built in TiledBackground object feature (sorry I wrongly referred to it as a behaviour) and have not had any success.

    I appreciate the feedback. I have read the manual and run through the beginner tutorial (and several other tutorials, studied examples, and done lots of reading on the forums, etc.). I am simply not very good at this sort of thing, but I am trying (just struggling along the way!)

    So, as a result of all that trying, I still have the problem of not being successful at adding a repeating textures to randomly drawn lines. I can get the texture graphic to display on the lines either stretched to fit, or simply one instance of the graphic to the correct scale - but sitting alone on a long line (not repeating).

    Still experimenting/trying - no success so far.

  • Found it. I had looked for a plug-in link on the site, and found it in the forum section. :o)

  • ok, but that link shows the TiledBackground Behaviour which I already have on the sprite. Is there another "plugin" that you are referring too?

  • I tried that but the graphic/texture doesn't repeat.

    I tried different things (using the animation as suggested, and pinning the tiled object to the sprite) and it either had one small instance that didn't repeat over width of object - or it stretched the small graphic over the entire width (not good either).

    What am I doing wrong? How can I get the image to repeat over the sprite?

  • I want to add a repeating image on a sprite. Ex: If a user draws a line, the line has a specific texture depending on a Boolean variable. (If it is true, use texture A. If false, use texture B).

    I can't figure out how to attach a texture to a sprite. AND I can't figure out how to have a different texture depending on the variable. (If I can't use the variable - I can make extra sprites instead. But if I can use the variable, it would be cleaner coding :o)

    Can somebody point me in the right direction? (I searched the tutorials and forums but can only find info on using a tiled image for the background).

    TIA!

    p.s. Just bought the personal version and it is well worth it for the "families" alone! :D