ConnorTheScot's Recent Forum Activity

  • Hi EyeForcz,

    I appreciate your honesty .

    [quote:2l1vyi07]your code is pretty much just garbage

    Looking at it now, yeah you are correct having an event occur every tick within a event which is only active every second does not really compute. I have amended this and it is still working as expected.

    I am now working on the LOS Icon on each individual enemy, however I am still having some problems. I shall perceiver and try to get this working, I will edit this post once either I have worked it out or I am still in dire need for assistance

    Thanks

  • Happy New Year to all!

    I have started dabbling in Construct2 again with the Free Edition, sitting at around 40 hours usage however my time has been consumed with just trying out different mechanics and essentially learning some of the programming. At the minute I am attempting to utilise the path finding and line of sight behaviours to create a 'smart' alerting system (smart being a complete overstatement as this is probably simplistic to most people).

    In my head, my problem is pretty simple but trying to find a resolution for this is proving to be a pain.

    What I want to achieve is whenever the Zombie has line of sight to the player, I need the losIcon to show on each zombie that has line of sight. The way the capx is currently working is that the icon can only be show on one zombie at a time which is not intended.

    Please do excuse the everything except the event sheet, the layout is terrible as I am just trying to nail down some behaviours prior to actually doing anything 'nice looking'.

    Any help is appreciated!

  • Wow... how the hell did i not notice that.

    Still new to Construct :) Thanks Zenox, appreciate your help!

  • Link to .capx file (required!):

    dropbox.com/s/rznc9qy2usw90v1/Test.capx

    Steps to reproduce:

    1. No known changes to cause this error.

    2.

    3.

    Observed result:

    <img src="http://imgur/8jcRoQZ" border="0" />

    imgur.com/8jcRoQZ

    Expected result:

    Project to preview as per usual

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Windows 7 Ultimate, service pack 1

    Construct 2 version:

    Latest downloadable from Scirra

  • > It would be probably even better to use choose(2,3) instead of random here.

    >

    > If you do want to use random, make sure you use: floor(random(2,4)), for random(2,3) will never reach three and will give values inbetween 2 and 3 like 2,5678 when you really only want a value 2 or 3..

    Yup totally true,   

    you could also int(random(1,4))

    works well too

    Various variations :)

    Hi all, int(random(1,4)) worked a charm.

    If possible can you advise what this solution is actually carrying out?

    Just so i know for future reference?

    Thanks all!

  • Hi all,

    i am at work currently so i cannot test anything, no matter i appreciate every bodies help thus far.

    Thanks

  • Apologies.. to the top!

  • Hi lennaert,

    i have tried to implement your solution, however it is not working.

    In the events sheet, i have the below set up ;

    Event 1 = Monster Health < or = 0 / Destroy

                                        Set PistolSpawn to Random(2,3)

    Event 2 =(condition 1)Monster on destroyed / Spawn Pistol on layer 0

            (condition 2)Pistolspawn = 3

    The instance variable is setup as a PistolSpawn, value starts at 0.

    Thank you for the help guys

  • Hi Draven,

    I may be interpreting this wrong, but im not sure this will execute the desired function.

    I have 10 monsters, i require the event sheet to spawn a sprite on the monsters death, but not every monster, this is the part im struggling with, have a random monster spawn the sprite.

  • Good afternoon all,

    i am currently trying to get a sprite to spawn on the death of an enemy, however i have 10 of the same enemy and i do not want the sprite spawning on the death of every enemy.

    is there any work around i can implement for this?

    Thanks in advance for any help :)

  • Hi mindfaQ, appreciate you assistance however this has not resolved my problem.

    I believe that a lot of the cause of this problem is due to the configuration of events which enabled the line of sight and path-finding to the player.

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Good evening all,

    i am looking for some assistance with my problem i have been having. I am currently just dabbling with Construct 2 and i have set up a small scenario which i am using to test a few different functions. Currently i have the scenario set up, so that you have to shoot the box, attain a key, walk to the door, the door opens and behind the door is a goon. I currently have managed (with heavy assistance of example provided through searching) to get the goon to path-find its way to the player, however now i want the goon to make a sound upon finding a successful path to the player, and then repeating the sound every few seconds.

    dropbox. com/s/rznc9qy2usw90v1/Test.capx

    I have attached what i have done so far (Please excuse the absolute chaos in the event sheet, still using the free version and cannot create families and i have done things in a totally weird order).

    (Noticed i do not yet have enough rep to post hyperlinks, sorry about that)

    Any assistance with my problem is greatly appreciated!

ConnorTheScot's avatar

ConnorTheScot

Member since 24 Oct, 2013

None one is following ConnorTheScot yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies