How to generate custom terrain or modify sprites

0 favourites
  • 13 posts
From the Asset Store
Best car suspension with spring effect and very cool terrain generation.
  • I've been a bit stumped with this problem. Construct 2 seems to function well with static sprites or a series of them for animations. This also means the the collision polygons are also static. In order to generate custom terrain I need to be able to change that. I could utilize the tile method to try and construct the terrain a chunk at a time but that seems a bit overkill for my needs. I'm trying to create a basic lander game and want to generate a custom terrain with landing sites and scores like this: my.ign.com/atari/lunar-lander%C2%A0%C2%A0%C2%A0Does anyone know if there is a way to do this, or perhaps some plugin can help? Actually, I've been thinking that I'd have to write my own plugin, but I'd like to know if it is even possible with a plugin before I start going down that route. Anyone with prior experience with sprite modification via plugin or another method?

  • #iggyboo, could this be of any help?

    scirra.com/forum/better-random-terrain-via-midpoint-displacement_topic46616.html

    It is also a part of How do I FAQ.

    Though the example has nothing common to vector graphics as the game at your link.

  • Now that looks interesting. I'll take a look. It could lead to a type of generated terrain.

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Before you ask in this section , please try yourself ... or even check the How do I section ...

    Please also take note that any 2d game iteration is possible in C2

  • Iggyboo

    Sorry about Whiteclaws, he can be a total jackass! Please rest assured we are not all like that around here. There are only about one or two arrogant egotards around here that seem to get a twisted pleasure from pissing on noobs.

    Whiteclaws

    Really? Necessary?

    Ashley

    What do you think?

       "You never need to write a plugin , just thing a bit about it and make your damn idea ... I don't see the point of is it even possible ? forum ... Register this in your mind ... C2 can make any 2d games ... The end !"

        by

       our darling Whiteclaws

  • Iggyboo

    My canvas plugin can be used for dynamic images and per pixel collision detection. It's not as simple as it could be but here are all the examples I could find:

    http://www.scirra.com/forum/how-do-i-simple-worms-game_topic47872_post300449.html#300449

    http://www.scirra.com/forum/destroy-Objects-parts_topic61035_page2.html

    http://www.scirra.com/forum/destructible-terrain-better-ideas-than-this_topic55053_post344054.html#344054

    Two of those have some kind of terrain generation if that helps.

  • Whiteclaws

    This guy kinda does have a point, however he didn't express it properly, but I'm sure he means well. As for custom terrain generators there's a couple of examples in the "How do I?" forum page, unclejunkie seems to already have shown you the link to one of them. Also I recommend not always resorting to a third party plugin as they are sometimes unacceptable in certain sites, such as the Scirra arcade

  • Val , Stop always following me , god ... I go on the site everyday to find some issues to help people and each time ... and I always see those types of posts made by new guys ... Could we not prompt the user to the rules before he can even post here ? They do it on other forums ...

    Seems like you only connect to try and drive me banned from the forums ...

    Seriously , come on ...

    I would like to say that this section is not for battling , therefore , that would be my last post here ...

    Edit : Here , Cleaned up the post just for the sake of it

  • Val

    Thanks for the defense. We gotta learn somewhere, right, and the best way is to ask questions.

    Whiteclaws

    I appreciate wanting us "newbs" to RTFM but I missed that "How Do I" section somehow and now I know. Thanks Uncklejunkie! We gotta learn somewhere, right, and the best way is to ask questions. <img src="smileys/smiley2.gif" border="0" align="middle" />

    R0J0hound and retrodude

    Thanks for helping to answer my question!

  • Whiteclaws,

    Someone needs to apologize for your rudeness. I'm not following you around, as these threads are for everyone,but I really feel sorry for the people you take your rage out on. So yes, until you tone it down and grow up a bit. I'll be on your ass like white on rice! You ARE not a moderator of these forums!

  • I agree with Val , Whiteclaws you are far too jaded for your age.

    If you can't really add something positive then there's no point in joining in.

    Anyway Yann's plug Polygons is similiar to Rojo's Canvas, and allows for manipulation of its collision poly.

  • I'm sorry ... Eh ... AuntieL Val ...

  • Just an update, for anyone that cares. <img src="smileys/smiley4.gif" border="0" align="middle" /> I think unclejunkie's link put me onto a great way to handle this. I didn't intend for this to be a "Terraria-ish" type game, but this has lead me to an interesting mechanic for another game I have planned AND it may have led me to a way to simulate a type of vector type terrain for this one. If I use a similar style grid terrain system and different top sprites with varying surface angles I could provide a like style surface but with a higher "resolution", so to speak. I just have to make sure that each angled surface sprite corresponds and matches the adjacent sprites. Not quite a vector drawing system but it would fit my needs. However, this could lead to a vector-ish drawing using grids and sprites. Maybe I'll work on that later, but, for now, I think I have my direction.

    Thanks for all of your support!   <img src="smileys/smiley32.gif" border="0" align="middle" />

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