Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Stylin Stalin

Pages: 1
1
Ask a Question / Disabling Physics
« on: May 22, 2013, 10:15:20 am »
I'm currently trying to make a Megaman-style platformer game, but I'm having trouble with some enemy behaviors. Specifically, when the enemy gets hit by a player's bullet, the enemy is just kinda thrown all over the place, bouncing on the floor and whatnot. I added to disable gravity and rotation, but it's still thrown to the side when it gets hit. Any suggestions?

2
That was intentional. When the character initially lands, both variables will be true for .02 seconds. During this .02 seconds, it should set the animation to standing, but it should prevent the character from being stuck in the standing animation while walking.

3
I'm currently working on a Megaman-style platforming game, but I'm having trouble getting some animations to work. When I press the jump button, my character will jump straight up, but when he lands, he's stuck in the jump animation until I press either of my walk buttons. My code is written with 2 different variables, "On Ground?" and "In Air?", to differentiate if the player just landed or is still on the ground. When both are equal to true (which should happen a during a split second directly after the character lands), the character should be in the Standing animation.

On a related note, when I try to control my jump arc in midair, the character does the walking animation rather than the jump animation, even though my "On Ground?" variable should be set to false.

I'm guessing this has to do with my On Ground collision detection, but I'm not sure where it goes wrong.

Also, still on the subject of jumping, why does my character seem to lose gravity while moving in the air? Should I use a force block instead of a velocity block?

4
Resolved Questions / Re: Not recognizing Key Releases
« on: May 16, 2013, 10:03:38 am »
Ah. That makes sense. Thank you!

5
Resolved Questions / Re: Not recognizing Key Releases
« on: May 16, 2013, 09:30:51 am »
Will that still cancel the velocity loop?

6
Resolved Questions / Not recognizing Key Releases [Solved]
« on: May 16, 2013, 08:44:43 am »
Hey there, Forums. I'm having troubles getting my character to stop walking. In my walking code, I set the character to a velocity in a periodic loop while the button is down. However, it doesn't seem to want to ever exit the loop. I checked the conditions, and when I hover over the "(Right)/(Left) (Was Released)" condition that causes the loop to cancel, the bottom left corner of the screen (where it gives information about different code blocks) just says "Missing". Is there some source code I'm missing or something?

EDIT: I suppose it would also help if I described how the game was functioning. Basically, when I release the key for walking left or right, the animation stops, but the moving doesn't.

7
Ask a Question / Re: Need some help
« on: May 13, 2013, 08:19:23 am »
Sorry for late reply, haven't been on in a while. But yes, when the actor is created, gravity is enabled.

EDIT: Fixed it by adding gravity to the scene along with the actor, but i still have the problem that it crashes if I press the jump button again in the air.

8
Ask a Question / Need some help
« on: May 10, 2013, 10:13:43 am »
Hey there, Stencyl Forums. I've been working on my final project for school (Game Programming) in Stencyl, and I've hit some serious snags in my player behavior. Specifically, jumping is going wrong, and I'm not sure why. When I press the jump button, the player just kinda goes up forever, despite the downward force coding, and when i press the jump button again, the flash player just crashes. Also, I'm having trouble getting the bullet to detect which way the player is facing when it spawns.

TL;DR: Game doesn't do what it's supposed to. Wat do?

Pages: 1