HPA97's Forum Posts

  • Hey I am currently streaming Construct 2, making an RTS game. I usually stream games, but I sometimes make games. So feel free to follow me, I stream as often as I can!

    twitch.tv/hpa97

    I will answer as many questions as i can. ;)

    I hope i posted in the right section of the forum, please let me know!

    <img src="smileys/smiley10.gif" border="0" align="middle" />

  • I agree that i used a very loong and hard way to deal with the problems. However that is how i learn, by doing. I like to think out a logic and a easy way to try to solve my problems, but of course since i am not skilled with how the "Arrays" works, i obviusly end up having problems where i can only solve it by using these loong and hard ways. But that is just how i deal with things, and i like it ;)

    I also like to share it to others so they also can use it if they find it helping. But i agree that i use loong and hard solutions for things...

  • RookieDev

    Glad to hear :) I will post more construct when i get my new computer ;) I also works on an another project which i may also post some videoes about! But i am not sure if i can post them while speaking english, because my english kinda sucks, but i might try.

  • RookieDev The trick is to make your tiles all over the map, except at the top (because you want some surface) http://i.imgur.com/dinYKeO.png Then you add "Erasers"(Which i like to call them) http://i.imgur.com/WKsx1aM.jpg Which are the pink/purple circles or whatever you wanna colour them just make sure they are invicible during game. Then you make each of them individual so they don't erase in the same pattern. After that, you goto your event sheet, and make a global variable which you may call "RandomGen", just give it variable = 0.

    Make a group, which you may call "ERASERTOTAL" And inside you make more Groups (Depending on how many eraser you have. http://i.imgur.com/92nBeaD.png. I for an instance has 6 to begin with, but i only use 3 of them + an extra eraser.

    Do: System Every Tick -> System Set RandomGen to = round(random(0,7))

    Inside your Eraser group:

    (Make sure your eraser has "Bullet" behaviour.

    Do: System Check Variable = 0 -> ERASER1 Set angle + degrees

    Do: System Check Variable = 1 -> ERASER1 Set angle + degrees

    Do: System Check Variable = 2 -> ERASER1 Set angle + degrees

    Do: System Check Variable = 3 -> ERASER1 Set angle + degrees

    Do: System Check Variable = 4 -> ERASER1 Set angle + degrees

    Do: System Check Variable = 5 -> ERASER1 Set angle + degrees

    Do: System Check Variable = 6 -> ERASER1 Set angle + degrees

    Do: System Check Variable = 7 -> ERASER1 Set angle + degrees

    Do: On start of layout -> System (for example) Wait 5 seconds

                              ERASER1 Set Bullet speed to 400

                              ERASER1 Set scale to 0.5

                              Wait 15 seconds

                              ERASER1 Destroy

    (You could do anything you want for that one, but i did it like this to make it a bit more random and make the terrain look abit more nice)

    Now do the same for all of your Erasers.

    !!REMEMBER TO CHANGE Which "RandomGen" number that active certain angle for each of your erasers or else they will all do the same erasing!!

    To make it even more random:

    http://i.imgur.com/ikDLPkq.png

    Instead of making a new global variable for that one, you could just use the "RandomGen" global variable.

    At the beginning of the layout, you don't want to show the players how the map is generated, so make sure the tiles and erasers are invicible at the bery beginning.

    Make a group called (for example): "GenerateInfo"

    Create "Text" which you may call "LoadInfo"

    Inside it will look like this. http://i.imgur.com/wcHHJIQ.png

    Every 1 second you set "Generating: (add 5%)"

    Do this 20 times, at the end you make "LoadInfo" Set Invicible.

    At the picture you can see that i did chagne something, and added an another second, but that is bcause i have some delays with the erasers and random ore placing.

    Now for the Ore's

    http://i.imgur.com/NmRcRN1.png

    You make theese pink circles, which will be spawned random all over the map at the end of the generating process (Make sure the map is finished erased before making the Ore gen appear).

    Make sure you give the dirt/stone.etc(tiles you wanna replace with ores...) an variable. (ID=0)

    Whenever an Ore is above a tile, the tile will change ID. (For example) DirtID = 0. "Random CoalGen appear" DirtID = 1 (Which will turn the Dirt to a coal ore. and you can watch the picture to see how it's made.

    That is mostly it, but you also want the dirt on surface to become grass.

    Make spawners at the whole top layer of the map, which spawns "Seeds" At all time. Whenever a seed hit the dirt, the seed destroy itself, and the grass change ID to a grass ID.

    You also need to make sure the map get visible after the generating, you need to time the Seconds needed to generate the map, which you also need to put dealys on the LoadInfo! I hope this rough tutorials made some sense, in worst case i could make my capx downloadable, but id like to have it myself, becuase i plan to upload it to scirra arcade soon ;)

  • Hoyer It's random erased. Everytime you load the game, you get a random map, with random ore placed. So it's somehow the same outcome as an array random generator, just ALOT easier!

  • Lol, i am actually working on a terraria based game. I didn't use array or some complex stuff. This is a picture from my project: http://i.imgur.com/CquvHk2.jpg The map is random "Erased" With ores randomly puttet underground. It's the easy way to make random maps, which also look's great. The map is different each time, and i even added fog beneath the ground, so you need to discover stuff to find stuff ;) http://i.imgur.com/1E7uiFQ.png

  • How do you make an erase effect?

  • Thank you! This is the best tips i ever gotten so far! XD Wow! I also have this "Big game" problem, as i start, and then stop, and then start on other big games projects. This is incredible helpfull! THANKS!

  • Hi, i am working on a new RTS Game, but i have alot of problems to find tutorials to help me complete it! If you know where i could find one, please reply. ;)

  • Thank you Kyatric ;)

  • ramones thank you! Hopefully i can transfer that into my rts game!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hmm, i now tried to make my X=3000 Y=3000 map covered by 375 wide and tall squares. Like the map is covered by 8X8 squares (64 total)   And a minimap with the same total of squares (just smaller) so that everytime an object went into a square, a square in the minimap would highlight. but i gave up on that because it became to complex, and to big and weird. I think i might need to use another technique :/

  • I can't find the RTS example you guys are talking about D:

  • Sure! I will try ;) Ill start with an simple one first, then i make it more complex later :)

  • Wow! Thank you for taking time making that tutorial! Thanks!! ;)