ThomasP's Recent Forum Activity

  • Well, this thread didn't disappoint!

  • Could you record the X and/or Y value of the already existing sprite, then spawn to that position +/- the precise distance you want?

    Spawn at position ExistingSprite.X-PreciseDistance, ExistingSprite.Y-PreciseDistance

  • If you want the grid always there, you could add the grid outline to the tiles in the tilemap.

    EDIT: Oops, didn't see how old the comment was that I was responding to...Sorry!

  • So the global variable C basically just records the angle of B in comparison to A, so even though they aren't pinned at position and angle, B stays rotated the same in relation to A?

    So if I had a variable that just held the angle different between the weapon and the player, the weapon would look like it's being steadily held by the player even with being pinned at the angle.

    Thank you, LittleStain. I think that solves one problem for me.

  • I'm trying to create a top down melee combat system and I keep getting stuck on the swing. I want the player to hold the left mouse button down to swing the weapon. While the button is held down, the weapon has a back swing, then once that angle is reached, it is swung forward until it reaches the end of its forward swing. Since it's top down, the player sprite could be rotating (player sprite always points at the mouse) as well, which should affect the angle at which the weapon is held. Ex: if the player sprite rotates the same direction the weapon is being swung, the weapon should appear to be swung at a higher speed, or vice versa.

    I also have several different melee weapons, each of which has a different back swing, forward swing, swing speed, etc, and I have them all in a family. I'm trying to use a function that just uses the instance variables to determine the actual angles.

    I've been working on this for a few days now and read all the threads I could find on melee combat, but those are all about animation frames, which I'm not using.

    Imagine Hotline Miami's melee, except the mouse button needs to be held down throughout the swing or else the weapon goes back to its default position.

  • You can click in the layout view, press Ctrl + A to select all, then Ctrl C to copy, click in the new layout view where you want everything to go, then Ctrl + V to paste. I don't know of a way to cleanly do it, though.

    Is this for UI purposes?

  • So you're using layers to differentiate between different levels of your game instead of layouts? How are you using the word level when you say "level one or level two" in your first post? Like Mario Bros. where you go from level to level, or like a building where each floor or story would be a level? If you need to switch back and forth quickly between the different levels, I could see using layers, but otherwise I'd recommend using layouts.

  • Hahaha, well, this question reminded me of one asked in another thread, so I went to go find that thread and it turns out it was yours, Ximon, and the answer in there didn't explain how to do so. Hopefully LittleStain sees this thread and is able to answer specifically how to do so, since I'm curious as well.

  • I don't have Construct 2 in front of me, so I don't know if you can disable entire event sheets, but you can put the events in a Group and then disable or enable the group as you want. You could have each fighter in their own Group, have them all disabled, then when a fighter is picked, that fighter's Group is enabled.

  • Isn't pick Nth instance what the tutorial I linked with solution 3 showing? This is the internet, so I feel it necessary to point out that this is a serious question and I'm not trying to be a sarcastic jerk. I may be misreading the tutorial, which would certainly not be the first time for that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This tutorial should help and doesn't require a duplicate family: https://www.scirra.com/tutorials/556/un ... o-families

    Solution 3 should be what you're looking for.

  • You can have System Spawn Object at position, then for the X and Y coordinates, use random(0, layout.width) and random(0, layout.height).

ThomasP's avatar

ThomasP

Member since 26 Mar, 2014

None one is following ThomasP yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies