clarke2509's Forum Posts

  • its like mini golf and football(soccor), with 2 opposing teams of 4 trying to get the ball in the opposing teams goal. The player can move freely and can also fire "bullets" at the ball. Right now my AI all just charge at the ball randomly shooting at it towards the goal.

    What im hoping for is to maintain field position,

    Shoot more accurately at the goal. (right now im literally just using goal is within x angles then they shoot)

    Any help is greatly appreciated, Thank you

  • right now i just use pathfinding to make the AI move to the ball but its not great, has anyone found a good way of doing it?

  • Thank you both for your help, the file was very helpful and i have it working now.

  • I'm not sure completely what is meant by "it only lets me place one of each object". Do you mean that pressing the button, dragging and putting down an object only works once ever? Or that you'd like to press the button, drag, and then keep clicking to put down as many as you want?

    I mean so i press the UI button, the object follow my cursor, i then press the button again to release the object, then if i press that same object in the UI again, the one i previously placed, disappears, it seems like a simple fix but i am unfamiliar with the UID system.

  • Anyone know how to do this, surely there is a more simple way of creating a click and drop UI... for example tower defence/RTS style UI

  • Try saving the UID of object created to a variable when it is created. Then add a Pick by unique ID condition to position that specific instance of the object under your mouse or place it.

    Can you explain to me how i do this please, I'm not familiar with the UID and cannot find a relative UID tutorial.

  • im trying to click with mouse on a button then an object is created on the mouse and follows the mouse until clicked again where it is then placed down... the way im doing it now works terribly so has anyone got a better way of doing it...

    heres how im doing it now;

    Variable PlaceObj = 0

    Mouse - On left button clicked on (button) - set PlaceObj to 1

    - Create obj (object) at mouse.x, mouse.y

    system - PlaceObj = 1 - Set position to round(mouse.x/16) * 16, round(mouse.y/16) * 16

    - Every tick

    mouse - on any click - set PlaceObj to 0

    - set position to self.x, self.y

    Issue with this is, it only lets me place one of each object.

    P.S Sorry i dont know how to import image, tried making it as clear as i can.

  • Ah thank you so instead of rotating through events, you must use the Rotate behaviour. It works perfect now.

  • Hi, i am making like a power bar and at the centre is the perfect point and towards the ends is the worst. I have an arrow which i want it to rotate clockwise until it gets to a certain and angle and then to change to counter-clockwise until it gets to a certain angle.

    Does anyone know how to do this?

  • im experimenting with all the different movements i want to create a more smooth movement which replicates a space ship in space.

    Does anyone know of a spaceship movement which looks like its actually in space?

    Thank you.

  • ahh for some reason this worked, I created a new family and transferred all the objects over and for some reason it worked so it must have been some sort of bug from adding objects to the family.

    Thank you all for the support.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes this is what is confusing me though, when I create object family It should use all the families behaviours right?

    Instead for some reason, it is resetting the family behaviours on each object, behaviours which I can't access with the event sheet, such as directions, set angle, default controls (from the 8Dirextion behaviour)

  • i set the values in the family. I have roughly 20 objects in the family so i could set them all individually if that works allthough it will be very teadious and inefficient considering i will have to write events for each object.

    So for people who have this issue with more objects it will be even worse, surely this bug needs to be addressed?

    I am using the latest version of construct 2

  • Hi i have a family which contains many objects and i create an object from the family randomly. the problem is every time i create an object the family resets the 8 direction behaviour.

    when the object from the family is created, these 3 behaviours reset the their original setting, i.e. 8 direction, angle Yes and Default controls Yes.

    These features which i need cant be targetted in the events to stop it reseting either. such as;

    I want to keep the direction to 4- direction,

    the set angle to No

    and the default controls to No.

    None of which i can access in the events sheet, does anyone know how i can fix this?

  • sorry i should have been more clear, i meant the same mechanics as how it randomly generates objects off the screen.

    so say if i held down the key "D" from WASD keys to move right, i move the planets left and when the planet leaves the layout i want another random one to spawn at the far right. I want this to happen in whatever direction i move.

    It seems like it should be simple but i dont understand why it isnt working.