Problems with angle/direction

This forum is currently in read-only mode.
From the Asset Store
Character Sprite Pack: Walk 4 Directions made in illustrator
  • I am super sorry if this covers any material in any of the tutorials, but my computer can't run them. I think it is because I do not have a graphics card, but I can't really afford one right now.

    Okay, so I am very used to MMF 2's system, and because I have read so many good things about Construct I am trying to switch over. I don't want to use the default "behaviors" that it comes with, because I feel that they give me less control than I want, so I basically re-did one of the custom platform movements I had in MMF 2

    My problem stems from the fact that Construct does not have directions- rather, it has angles. I like being able to manipulate the angle of my sprite without affecting the direction they are currently facing, so this is a problem. His default direction is right (angle 0), and the first thing I tried was manually flipping his animation frames in the animator for left (angle 180). I did not like how this affected his natural rotation, so I tried the mirror flip--- this also ruined the rotation, and since there are no events concerning this check box, I felt it took away some of the control I need.

    So am I overlooking a feature, or is there a good way of doing what I want to do? The only idea I have would be to make each direction of an animation a separate animation, which could get confusing and cluttered. Perhaps I should request a feature for construct 2.0?

    It may not seem like that big of a deal, but since I am not a very good game maker I do my best to make my games as graphically pleasing as possible. Thanks in advance dooooooods

  • You can and probably should make a simple collision box[make it invisible], and apply your movement events to it, then center you character sprite on it .

    This way you can rotate invisible collision box the way you want without affecting sprite direction.

    Don't know about direction functions

  • I already have a seperate colision detector :T

    My problem is with the displayed guy

  • Yes, angles in Construct and directions in MMF are different.

    Here's the basic breakdown:

    If you make an animation angle for 180, then when your sprite is facing 180, it will use that animation angle instead of just turning the sprite. Construct chooses the animation angle closest to the actual angle of your sprite.

    If you only have Angle 0 drawn, then Construct will manually rotate your sprite around 360 degrees.

    If you have animations for 0, 90, 180, and 270 then Construct will pick the closest one and show that sprite, but it will manually turn it the rest of the way:

    http://files.getdropbox.com/u/529356/angles.cap

    If you set the sprite to "No rotation" in the properties, then it won't turn between angles, and the sprite will "snap" to whatever the closest angle is. Go ahead and try it out.

    There are more animation and angle options too, mess with them a while and see what you can come up with. Construct might look a little like MMF on the surface, but it does work differently, so you're going to have to unlearn some old MMF habits if you want to switch over.

    Anyway, you really should invest in a graphics card, it's pretty much necessary for making games with Construct. You're going to run out of onboard VRAM really quick, and the layout editor will crash on you, and you will have all sorts of problems. You won't be able to load and run other people's .caps and you'll be pretty much stuck for how much you can learn to do.

    Not to mention you'll be asking a lot of questions that are easily answered in the tutorials, and people will just keep telling you to go look at the tutorials.

    A cheap $40 graphics card from five years ago is enough to work on most stuff, and it's a good investment.

  • Yeah, I kinda figured that part out. I was just wondering if there was some easy way to have multiple directions that WEREN'T tied to the normal angle system.

    I am planning on trying to get a laptop at the end of summer, since the school I'm going to won't have room for a desktop computer. I will pick out one that has a good graphics card for sure.

  • Yes, you can do that with events. There's a "Set animation angle" action and you can use whatever conditions you like to trigger it.

    You'll probably want to uncheck "Lock animation angles" in the sprite properties if you're going to do that, though.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I guess I'm not getting across what I want to do

    I want to use the angles for smoothly rotating my sprites, but I want to have left and right directions for all of my sprites

    I made a diagram as an example:

    <img src="http://www.trianglemadness.com/junk/roatateexample.png">

  • Okay then. How does this not help you?

    Yes, you can do that with events. There's a "Set animation angle" action and you can use whatever conditions you like to trigger it.

    You'll probably want to uncheck "Lock animation angles" in the sprite properties if you're going to do that, though.

    You make angle 0, you make angle 180. You uncheck "Lock animation angles" and manually set the animation angle when you need to. That way the animation won't change automatically from 0 to 180 when the sprite turns around... only when you tell it to. The leftward facing animation (180) will freely spin 360 degrees until you use an action to set the rightward facing animation (0), and vice-versa. And if that's not what you meant to do then yeah, I guess I'm not understanding.

  • That actually sounds like it'll probably do the trick. Sorry I wasn't understanding.

    ...I'm having a little trouble finding the lock animation angles checkbox, though.

  • Sprite properties bar, at the very bottom

    Edit:

    Oops, looks like that's a v0.99.x option. If you're using v0.98.9 it's not there... sorry about that

    Anyway, even though v0.99.3 is marked "unstable" it's still pretty stable so you may as well give it a shot.

  • haha that is probably why I was so hopelessly lost.

    I will give that build a shot tomorrow. Sounds like my graphics situation might make it crashtastic though.

  • welcome to construct, kingkibble

    just a quick comment on the graphics card, check with someone you know, if you're not sure what will fit on your motherboard, but if you look here, you'll see there are directx9 capable cards for as low as $25. you won't be playing crysis on them, buy honestly, if you can't run the tutorials it will be hard to learn much(because of your hardware limitations). the tutorials are about as basic as you can get, as far as the graphics power needed:

    http://www.newegg.com/Product/ProductList.aspx?Submit=ENE&N=2010380048%201068609623&bop=And&ActiveSearchResult=True&Order=PRICE

  • haha thanks

    I built this computer a while back so it has:

    Intel Core 2 Duo (2.4 ghz)

    and 2 gigs of ram

    It has whatever graphics stuff it has "integrated" and it wasn't in the budget to get an actual card. It must be able to run Direct X 9 if it can run construct at all, right?

    Anyways, I'll do my best to get a card as long as the other stuff is alright. Like I said I need to save up a laptop, so the kinda specs I need would be nice to know.

    But I guess that is another question for another day!

  • My old laptop runs Construct fine despite having an onboard GPU. Any new laptop will support it I'd guess.

  • Then why does my onboard desktop GPU not run it (well)

    STORY OF MY LIFE

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)