• 0

    posted a message on Button Images?

    I see that when you create a button there's an option to set its image when moused over, but how do you go about setting the button's image when not moused over?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Smoother WoSMovement

    For backwards movement all I do is get the unit's current movement speed, take a fraction of that, and then instant move the unit in the backwards direction by that amount.

    You can do the same thing for forwards movement and have the unit retain its current movement speed, but I still prefer to order my units around for a smoother look and also because there's a limit to how far you instant move (go too far and you'll break through walls and stuff).

    Should probably also note that you can get a much more realistic backwards walking animation if you switch back and forth between "Stand Left" and "Stand Right" instead of just using "Walk" which doesn't look good at all.

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] 3rd Person Movement

    I see your map has the same problem I posted about here: http://forums.sc2mapster.com/development/map-development/499-camera-pitch-restrictions/

    Have you looked into any sort of solution?

    Posted in: Tutorials
  • 0

    posted a message on Camera Pitch Restrictions?

    I've currently got it set up so that I can move a unit in the direction of the camera and would like to be able to change the direction of the camera by right clicking and dragging the mouse. I am able to do this with the CameraSetMouseRotates and CameraForceMouseRelative functions but like this there is no limit to camera pitch allowing the user to position the camera below the ground as seen here: http://i39.tinypic.com/2lxjv35.png|

    I am able to crudely code in restrictions by constantly checking and resetting the pitch. Like this, if the user attempts to go past the limit slowly they'll get a shakey camera and if they try quickly they will break through the limit for a fraction of a second showing what is in the image above. Overall it just doesn't look very good.

    So is there any way to go about fixing this? I've looked around and there doesn't seem to be any camera options for this or any way to get the x/y coordinates of the mouse; so I'm stumped.

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