Maximo's Forum Posts

  • 4 posts
  • Wow - AMAZING! That's exactly what I was looking for. I can now wrap my head around this. THANK YOU!!!

    [How do I give +Rep on these forums?!]

  • Thanks Newt, I get what you're saying about the loop index now. It would be similar to

    For x = 1 to 10 do

        For y = 1 to 10 do

           Array[x,y] = 0     

    Thanks for the help. <img src="smileys/smiley1.gif" border="0" align="middle" />   I'm still a little skeptical of doing all this through a drag-and-drop editor, but I'll look into some examples and see if I can get the hang of it. You don't happen to know of any examples that do something similar to what I'm talking about, do you? Anything that is procedurally generated actually - doesn't have to be a platformer... I've seen tons of examples on how to drag and drop platform sprites in the layout view to build a level, but I haven't seen any that touches upon building one in an array and then "printing" it to the screen...

  • Newt, thanks for your response. It's good to hear that this is possible.

    Few more questions!

    1) Sorry for the noob question, but I'm used to seeing array syntax looking like If ArrayName[x,y] = 8, Then Do Function_Name.

    I see you use the term loopindex x and loopindex y. I'm not familiar with this term. Does it replace [x,y]? So instead of ArrayName[3,2], it becomes ArrayName loopindex 3, loopindex 2? Again, sorry, I'm probably misunderstanding what you are saying.

    2) Your response looks suspiciously like code, but you say there is no programing language in Construct 2. Are you saying I will have to built and manipulate dozens of multi-dimensional arrays, built item and loot tables, and build a procedural level design engine - all through the event sheet drag and drop editor? Is this even practical? I imagine that would be very cumbersome...if it's even possible.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So I'm wanting to make a game like Spelunky; a platformer that has randomly generated levels. So, in other words, the first time you start the game, there will be 3 platforms, then a long jump, and then some stairs. The next time you start the game, there might be some stairs leading up to a platform, then a long jump over to four other platforms. The third time you start the game, it creates a new random layout. I realize that something like this would have to be coded, as you would have to tell the system all the rules it would need to know to build a level. Example:

    1. Platforms must be spaced between x and y pixels apart.

    2. Platforms cannot be more than z pixels higher than the nearest platform (cause the character can't jump that high)

    3. Platforms length minimum and maximum

    4. Etc., Etc

    So, here are my questions!

    A) Is this type of game possible in Construct 2?

    B) Is there a programming/scripting language in Construct 2?

    C) If I can create a randomly generated level layout in an 2-dimensional array, how do I get Construct 2 to build that on-screen? For instance, the 1st 30x30 pixel block on the bottom left of the screen displays a platform sprite if Array[1,0] = "P", and then if Array[1,1] = "L", place a ladder sprite on top of the first platform space

    (Am I making any sense here?? LOL)

    Basically, can I make a platform game that randomly re-arranges the platforms according to certain rules each time you play it?

    I would greatly appreciate any help or advice that anybody could give me!

  • 4 posts