Level Design Question

From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template)
  • <img src="http://www.google.co.za/imgresq=where+is+the+water+game&start=77&num=10&um=1&hl=en&rlz=1C1LENP_enZA477ZA477&biw=1366&bih=667&tbm=isch&tbnid=bkmsOnoVDvS3kM:&imgrefurl=http://wn.com/habspuck&docid=ji6vNZJfqWkbLM&imgurl=http://i.ytimg.com/vi/hQoCyDSg4qA/0.jpg&w=480&h=360&ei=bRW6T7r5Ic6gOr6T4ZIK&zoom=1&iact=hc&vpx=1066&vpy=329&dur=2674&hovh=194&hovw=259&tx=121&ty=116&sig=109051388931202388715&page=4&tbnh=145&tbnw=192&ndsp=29&ved=1t:429,r:6,s:77,i:17" border="0" />

    I'm not even sure what you would call this or where to start, But I want to learn more about this type of game where you can change the ground by in this example a swiping your finger to dig.

    Any ideas where to start on this.

  • Hmm, this is pretty complex...

  • <img src="http://iplaytop.com/imagesforreviews/Where-Is-My-Water-iPhone-review-003_full320x480.jpg" border="0" />

    My linked image is not coming through so try again.

  • I have played that game on a ipad and it is very fun. To me it looks like it dynamically recreates the vector graphic that is the ground once you swipe your finger. I don't think we have these options in C2.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I haven't played that game, but I think you might be able to get started by using Sprite Effects. There is an example in the Construct 2\examples folder called 'Sprite effects.capx' that you could look at to get an idea of how these effects work, if you don't know already.

    I was thinking that you could create a small circle sprite (or square) called "Ground" and set its effect to 'Destination In'. On the same layer, add your ground graphic to a sprite and call it "Ground Image". Make sure "Ground" is on TOP of "Ground Image".

    Now, if you set it up correctly, the "Ground Image" will only display where you have "Ground" objects. What you can do to start is have "Ground Image" fill up the whole screen, then place "Ground" objects all over it. Have an event that destroys "Ground" objects if they are clicked on.

    Now, when you run the game, it'll look like there's ground everywhere and as you click on different parts of the ground, they disappear. You can work up from there to get the effect you want. I think this is a good approach, because you can use the "Ground" objects to interact with your environment (such as by giving them a 'Solid' attribute), which will give the illusion of a real, dynamic surface.

    Alternatively, you can use the Canvas object to draw the ground dynamically as rfisher suggested. This will give you better results, but will be harder to code.

  • Dalal is correct...The only way to accomplish something like this at the moment is with masking, like he has described.

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