Evaluating drawn objects in Construct 2

0 favourites
  • 6 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • Hi guys. This is my first time posting on here. I'm trying to make a game that's best described as an action packed Lemmings crossed with Crayon Physics Deluxe (I've literally just started, there's only one line of code in the event sheet and one sprite with the Platform behavior).

    So far I've managed to get the shape drawing functionality down where you draw something on the screen and it disappears. What I want to do now is have that shape that's drawn be evaluated, then spawn a platform or object based on the dimensions of that shape.

    I have no idea where to begin with implementing that.

    I don't even know how to attach the .capx file here, I don't see anything for it.

    ...I don't know anything... :(

  • What kind of logic did you set up to be able to draw shapes?

  • What kind of objects would you want to create?

    if it's a straight object like a platform, you could probably just use the start and endpoint of drawing to create the object from start untill endpoint.

    If the object needs to be tilted in the direction you can use set angle towards endpoint.

    If you want to create more complex objects you'd need to have some kind of shape recognition, this will be harder to achieve, but I've seen a third party plugin that does just that.

  • Touch -> Is in touch -> System -> Create object -> [object] on layer 0 at (touch.X, touch.Y)

    **NOTE**

    Can someone just go ahead and delete this post? It was made in error.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What kind of logic did you set up to be able to draw shapes?

    Touch -> Is in touch -> System -> Create object -> [object] on layer 0 at (touch.X, touch.Y)

  • What kind of objects would you want to create?

    if it's a straight object like a platform, you could probably just use the start and endpoint of drawing to create the object from start untill endpoint.

    If the object needs to be tilted in the direction you can use set angle towards endpoint.

    If you want to create more complex objects you'd need to have some kind of shape recognition, this will be harder to achieve, but I've seen a third party plugin that does just that.

    LittleStain

    I want to create platforms of various types that a (pathfinding?) sprite can use to get to the end of a level. The player will draw with their finger (or a mouse for those playing without a touchscreen) the outline of whatever types of platforms they have at their disposal (they will unlock different types of platforms as they progress). The player touches a "drawing" icon in the top left corner to activate "drawing mode."

    I have the drawing mode functionality working, and the drawing functionality itself. It doesn't do anything yet though. What I want is for platforms to be drawn where the player draws the outline. Picture Crayon Physics Deluxe, but with the drawn objects staying in the position they are drawn at.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)