calminthenight's Forum Posts

  • This might be a stupid question. But I can't find an option to query the resolution of a display, not just the browser window.

    Is it possible?

  • Ashley

    Thanks for the info and demo project!

    I'm not relying on anything to do with this in a project, I just wanted to get a better understanding of how the engine handled multiple sheets.

    Thanks for filling me in

  • dop2000 Thanks

  • Just wondering what the process is when including multiple event sheets in a layout.

    Do the included event sheets run simultaneously from top to bottom or are the events of any sheets after the first sheet essentially added onto the first sheet which is then read from top to bottom?

    Cheers

  • dop2000 I plugged it back in today and it worked, it was just an event sequence issue. I've added some other aspects and I think I'll do a tutorial for it as others might find it useful.

    Thanks again!

  • I actually tried that first suggestion straight away after your first reply and it didn't work but my brain is a bit fried so I'll check again tomorrow. Thanks

  • Try Construct 3

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

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

    Thanks for that, I always forget about loopindex :/. The first part works perfectly for a one-shot between 2 points however, what I'm really looking for is how to maintain the line of sprites while the points move, for a continuous laser effect. Any ideas on that?

  • I can't seem to get the math working for this, any help would be greatly appreciated.

    I have two points A & B, and I calculate the distance between these, divide it by the length of the object I am wanting to spawn, then store it as an integer in a variable. The game then spawns a number of object instances equal to that variable.

    What I am trying to do is spread all the currently spawned instances out evenly between the two points.

    For reference, I am using a raycast every tick to get the positions and distance of the points. I'm trying to create a continuous laser weapon that uses small sprite segments for animation.

  • Thanks, that's what I figured

  • Just wondering how the IID's are assigned to objects that are already in the layout at startup.

    It seems that they are assigned based on the order that they were loaded into the layout in the editor, which would be the same as if they were loaded by an event.

    eg. if there are 4 instances of an object on the layout from left to right, and the first(from left) was created first, the second second etc. Then the IID's from left to right would be 0,1,2,3.

    However if the first created was the right hand object and then on from right to left; the IID's would be from left to right: 3,2,1,0

    Is this correct?

    Tagged:

  • Ok thanks. I figured as much since I had found the rotate options and there were no others there.

  • I am wanting to apply actions to only a specific tile number in a tilemap, for this example tile "0"

    I am using a comparison (with local variables to convert position to tile at) to detect if the tile the player is at is a specific tile number, and that's fine, but can't find where I would express the specific tile number in the actions?

    In this example: If the tile number at the player position is (0) I am setting the opacity to 0. However I am applying it to the entire tilemap which doesn't suit my purpose.

    Is it possible to apply the action only to tilenumber(0)?

  • Yes I can see some issues coming up. I'll try it when I have some more time to dedicate to it and let you know.

    Thanks for your help again!

  • I already use a separate legs and torso sprite, with the directional behaviour being applied to the legs, which at the moment are invisible. The angle of the torso is controlled by the other analog stick or the mouse.

    What I was wondering was: is it possible to create a 16-way directional movement behaviour? I assume the 8-way uses set vectors to produce the movement, and I guess you could create a 16 vector scenario and divide the analog stick axis' up to match. But the test is, would it react the same way to interactions with solids that 8-way does, or would the original problem persist?

  • dop2000 Implementing 8-way control with the joystick does solve the issue however, the ideal scenario would be to retain 360° movement. Making the playing field even between keyboard and gamepad users is probably better though.

    Out of interest, do you think it is possible to implement a 16-way control using the custom control behavior that would react in the same way as the 8-way to the solid collision issue?