• 0

    posted a message on [solved (nub mistake)] Copying Summon Nydus Worm

    I'm trying to use the Summon Nydus Worm ability on a custom structure that is not the Nydus Network. I can use the ability just fine when I have a Nydus Network on the map, but once I take away the Nydus Network, my custom structure no longer has the Summon Nydus Worm ability, thoughts?

    The only reason I was able to figure out that this was the problem was because I have 2 computer players that had an AI order to summon a Nydus Worm. I forgot to remove the Nydus Network for one player, so when the trigger activated, one side would spawn a Nydus Worm and the other side would do nothing.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Get mouse position without clicking ?

    This feature would be incredibly useful. It's a real shame that it can't be done. I was going to use it for a Diablo-style hack-n-slash game, where when you hit an ability, the ability is focused in the direction of your cursor. Without using the cursor as the target for all of the abilities, that's a lot of needless clicking. Imagine a Diablo 2 Sorceress that is chain casting Fireballs, but now has to click a second time to actually cast the Fireball or a Trapsin that needs to click a second time to place her traps. :/

    I guess I'll have to use the click-to-cast built-in system as I can't think of a single work around for this. :(

    Posted in: Miscellaneous Development
  • 0

    posted a message on any mathematicians out there?

    For 1 equation, it's exactly as you said, however, this is impossible to implement in the Galaxy Editor as a single action. For one, I don't see a way to dynamically find the angle of a wall without using vectors (possible to implement, but I've been lead to believe vectors are a hassle). Second of all, I'm pretty sure the galaxy editor won't accept degrees above 360, which is what will happen when bouncing off of South or Eastern walls:

    180 + 2 * angleOfWall - incomingAngle = outGoingAngle, where angleOfWall: North = 0 East = 90 South = 180 West = 270

    Note, however, that when angleOfWall > 180 (when hitting the South or East walls), outGoingAngle will be greater than 360, thus for the trigger, you'll need to check which wall it hits. It's impossible to come up with a single line answer for Galaxy Editor unless you use vectors rather than degrees, which, correct me if I'm wrong, isn't an easy thing to implement.

    The simplest way to get this into the Galaxy Editor, assuming you are only checking horizontal and vertical bounces is:

    North: 180 + incomingAngle

    South: 180 - incomingAngle

    East/West: 360 - incomingAngle

    Posted in: Miscellaneous Development
  • To post a comment, please or register a new account.