darkrealos's Forum Posts

  • rofl thanks for the reply but i generally just found the same tutorial

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • anyone?

  • ahh i see what you mean but i think i didnt make my question clear sorry. say you look at rpgs they got loads of random tiles to make the maps look unique well i want to

    have several tiles randomly generate together next to each other to make a unique background. and i dont want to do it by having like 700 background sprites for each section of bg, you understand?

    thanks for replying

  • hi there, this might be really simple but i cant work it out, i want to have a tiled background with about 4 different tiles to add variety to the background and for it to randomly generate the tiles on the tiled background, but i have no idea how to accomplish this

    thanks for any help

  • thank you very much for your time and help and yeah i know its bad im always trying to adapt and use new things ive learnt to make things better. i really really do appreciate all the help youve offered me. also did u do a capx? im not sure where to find it?

  • oh sorry about that let me quickly set it all up for you

    heres a new capx with everything set up so when u enter game. press map in bottom right and after 10 secs an enemy will attack and after it reaches base 3 secs later it will go to battle

  • hi there i did end up adding the end part of the suggestion. didn't help great deal i think. but sorry im trying to understand the code and struggling but here is the capx file.

    u can also see i tried something else which failed

  • cant seem to get it to work when i debug it. says demons have found path but wont move here is a screenshot.

    im sorry to be pain this is first time ive tried something like this but its completely stopping my project.

    Many Thanks

    Update: i did another test to allow the unit to rotate which actually made the troop move towards the enemy but this brings up 2 problems

    1. i dont want the troop to rotate as im using a sideview troop which looks way so is there a way maybe to use custom movement

    2. the unit once reaches troop keeps moving in same direction and not updating.

    also if i gave family the local variable for Pos_X and Pos_Y and change the events to these local varibles would it work?

  • thank you so much for replying ive been trying to get turret behavior to work but to no prevail so ill give this a go.

  • anyone pleasE?

  • i understand. did debate line of sight. but is the ai moves into the battlefield then find someone in there line of sight which will most likely be a minimum of 3 depending on how big the line of sight is how will it know which one to go for e.g. nearest. or is it a behavior? also lets say i have 2 minions fighting at the top of screen and one is left remaining at top and one at the bottom how will i make line of sight recognizable that there is a troop to fight down there. hope this makes sense.

    p.s im thinking of making a battle system bit like royal heroes if you ever played it. if not its free on kongregate as well as purchasable on steam

    update: im trying to use line of sight and set up when it detects a object but it doesnt give me an option or none i can see to go to the object it just detected. unless they is a way to return the uid of the object its just seen but i have no idea. so i general i dont know how to go to the object i just seen without it going to another object with the same sprite. also im using line on sight to detect families because there are so many objects to detect and the closest type of enemy might change so it would cause an event collision

  • hi there this might sound really simple and im being dumb about it. but im making a game which has simulated battles and trying to do an event where every tick friendly troops find a path to nearest enemy which ive put into a family. and vice versa for the enemy but i cant work out how to do this.

    there can be up to 100 friendly troops and enemy troops so its alot of sprites which i need each of them to find thier own mark to march towards.

    also something else i havent tryed to work out yet but would be good if answered is how to i get a minion once they start marching towrads enemy stop a set amount of space off them instead of on top of them.

  • yeah just tested and same problem again which is completely beyond me

    new update i was making the enemies spawns for the other side and i forgot to add a wait timer and i found out it spawn them all okay but pretty much on top of each other. so carried on added the wait timer and trigger once while true to stop it spawning loads while it waits on the timer and it did the same problem as the other side. so im thinking the main problem might be the timer. im gunna try add a new timer and event to try get around it and see if that does the trick. but any suggestions would be great

    another update. i just added another event on the end delaying the reset and timer by 1 more event and it did the same but spawned 20 instead of 19 this time so the problem is around the time for sure. which i think i can get around but if u could let me know what u think the problem is or any other way of fixing it in future that be great to learn

  • ill give it ago but the problem is it keeps spawning but always stops after doing 19 spawns so it resets to 1 fine but fails on the second attempt at 10

  • https://www.dropbox.com/s/7g32557lacf65 ... d.png?dl=0 heres alink for a screenshot as im not sure how to put it on here <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">