30FootForest's Recent Forum Activity

  • 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

  • THANK YOU!!!!!!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Arghhh. I'm hopeless.

    I got the lines drawing independantly, but now if the user changes the swipe direction while the lines are being drawn, the lines change direction in mid draw (and if half the line is finished drawing the opposite end might turn to create a 90 degree angle. ARGHHH!!!

    I just want straight lines horizontallly and vertically - and no odd flippy actions!

    Help!

  • Oh oh. Answered to soon.

    It is a step in the right direction though :o)

    Now the problem is that when you start drawing a new line while the first line is still drawing... the first line stops drawing. (all lines should continue drawing until the ends hit the wall - so there are never gaps between a line and a wall)

  • Thanks a ton!

  • Still a nOOb here.

    I got this to work part way, but it ain't working correctly.

    I want to swipe the screen in an up or down motion and a line will draw from the start of the touch, either horizontally or vertically (depending on the general direction of the swipe) until it hits a wall on either side.

    Once the line has drawn it should just stay that way.

    I should be able to swipe multiple times in either direction while the lines draw.

    My problem:

    I can draw multiple lines, but they all flip in direction when I change my swipe direction. I only want the swipe angle to affect the line that is currently being drawn.

    Capx is here (let me know if this doesn't work - I'm a nOOb at that too :o)

    dropbox.com/s/u0dtzvviphscmeq/DrawLineTest.capx

    TIA

  • Thanks. That helped a lot :o)

  • Thanks. I will try that and report back! :o)

  • First I'd like to say thank you to everyone who has contributed to these forums and the tutorials. I wouldn't have made much progress without the help I've found in your answers to others questions and in your tutorials.

    Now on to my question:

    I have a game where you have to stop sprites before they spawn. So, if you don't act fast the sprites spawn more sprites, and those sprites spawn more sprites,etc - until the screen is jam packed with sprites in which case - game over.

    I'm trying to figure out how to have an event detect that there are too many sprites on the screen. All sprites are solid, and contained within the screen. So they are bouncing off each other, and bouncing back off another sprite, spawning endlessly.

    The sprites are all different sizes, so I can't go by numbers of sprites. I'm currently attempting to record the location of a sprite in an instance variable and every 2 seconds compare the current location to the instance variable - but it isn't working very well (possibly because the sprites are still moving, even if they are just juttering in a tight area).

    Is there a good way to test if the screen is overpopulated with sprites?

    TIA!

  • Thanks. That was the issue. Once I destroyed the intial one outside the layout the numbers displayed correctly.

    Thanks to both of you!!

30FootForest's avatar

30FootForest

Member since 30 Jan, 2013

None one is following 30FootForest yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies