clarke2509's Recent Forum Activity

  • 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.

  • https://www.dropbox.com/s/ay3n35hjgdxhw6y/ArenaSpawnExample.capx?dl=0

    In no way am i an expert in construct 2 or is this perfect since i just put it together in like 5 minutes but i hope this can help you in some way.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • no so like im working on a space game but realised its too demanding to make loads of planets on one big map so instead i want it to randomly spawn different planets to come on to the screen when moving.. so like an infinite runner, how it randomly spawns platforms... except this is for all 360 degree direction.

  • Hi, how do i infinte scroll in any direction, like an infinite runner but 360 degrees.

    I have tried using like a trigger box, for example;

    object on collision with trigger box (just a blank sprite)

    • destroy object
    • create object (opposite side of layout to carry on the scroll)

    this works for the first time and then it doesnt work again, any idea? or better ways of doing it?

    Thank you

  • Ahh yes, now i feel stupid, Thank you.

    If anyone else is wondering, all you have to do is regenerate pathfinding obstacle map when you open/destroy object.

  • I am using pathfinding for a character to follow the player and it works fine until i get to an obstacle...

    so at a door i click to open the door (rotate sprite 90 degrees) and when i breach a wall (destroy wall).

    The problem is when i do this and try to walk through the character stops following.

    I make the character find path every 1 second so he keeps updating following the player, does anyone know how to fix this?

    Thank you.

  • Ye I thought it would as simple as that but it completely messed it up so I don't think it works like that unfortunately

  • Yes that is correct.

    This is an image which is similar to my hexagons except the 60,70 which i was referring too is the width and height of the object in pixels.

  • So my issue is im trying to make a hexagon grid snap in game.. so ive searched and found one which works on a flat orientated hexagon... the problem is mine is pointy orientated hexagon(the point of the hexagon is at the top). so i tried googling it and tried finding formulas but i dont understand them so please can someone tell me what my formula should be..

    so the size of my hexagons are 60,70

    and the code i have found for the FLAT orientation is;

    On drag drop

    • set x to round(4*(Touch.X - 320)/(3*self.Width))
    • set y to round((Touch.Y - 280) / self.Height - self.X / 2))
    • set position to (self.Width*self.X *3/4 +320 , self.Height*(self.Y+self.X/2) + 280)

    I dont understand this at all so can someone whos good a math please tell me what my formula would be for a pointy orientated 60,70 hexagon?

    Thank you.

  • ive realised pick by unique ID would be unefficient so i have attempted to use a more efficient system to do this by using a grid formula but thank you for you fast reply...

    Since ive now changed, my next dilema is finding a point orientated hexagon grid formula

clarke2509's avatar

clarke2509

Member since 9 Oct, 2014

None one is following clarke2509 yet!

Trophy Case

  • 10-Year Club
  • Popular Game One of your games has over 1,000 players
  • Email Verified

Progress

12/44
How to earn trophies