bird flight?

Get help using Construct 2

Post » Fri May 17, 2013 4:01 pm

So first off I'd like to apologize in advance if there is already a thread on this. I've been searching the forums for a few hours and using the sticky to try to resolve the problem on my own, but it seems I am hitting a wall..

I am trying to build a very basic game, and I have all of the elements for my game done, but I can't seem to load two animations into my sprite.

I am trying to make "running" style game where a owl flies through a library, needing to dodge the bookshelves and flaming books that are raining down.

So for this, I have established I can do it in two ways, the way I have been able to figure out but not sure is actually what I need is by using 8 direction. I changed the 8 direction settings to 4 ways, removed the angle and set it so that the animation will correctly view back and forth regardless of the direction. I feel like this is important for my game in particular because I have the raining hazards and the book shelves/platforms to maneuver around.

So when I press up to make my bird fly up or down, I have an animation that I would like to use, but regardless of how I program the event, it won't seem to actually change the animation.

https://www.scirra.com/tutorials/413/direction-based-sprite-animation --- was using this to follow the basic sprite setup

These are the four frames I have for the sprites. Up, Down, and idle/flapping two frames.

http://i.imgur.com/SNGxmtR.png
http://i.imgur.com/2CBJwA9.png

http://i.imgur.com/R98TDnR.png
http://i.imgur.com/eVeTqkT.png

Can anyone specify what I am missing with the animation graphic, to make it so when I glide up or down it changes just for that time that you have the key pressed?

I have the animations loaded as separate objects and as separate animations on the same sprite because I was trying so many different things..

http://www.scirra.com/forum/flying-bird_topic60749.html -- I did try to follow this forum post as well...

The controls used for this game and as provided by the example are great and would work well for my game too, I believe, but when I try to program the custom controls my bird will only turn left and right because of my events that cause the animation to flip, otherwise it stays still...
Krawwly2013-05-17 16:07:10
B
3
Posts: 5
Reputation: 185

Post » Fri May 17, 2013 4:26 pm

What are your conditions/actions for setting your animations?
https://www.scirra.com/forum/viewtopic.php?t=152506

And that is why you shall respect the bug reports guidelines, not only giving a capx is making the bug reproductible in one click in a situation they can work with (less time wasted trying to reproduce vague instructions) but also it helps filtering false positives.

Game design is all about decomposing the core of your game so it becomes simple instructions.
B
42
S
17
G
16
Posts: 2,089
Reputation: 15,345

Post » Fri May 17, 2013 4:32 pm

@Aphrodite Endless fiddling of the settings actually helped me to change the animation, this is what I have so far:

Events:
Keyboard> Left Arrow Pressed - Mirrored
Keyboard> Right Arrow Pressed - Not Mirrored
Keyboard> Up Arrow is down - Set animation to "Up" (play from beginning)
Keyboard> Down Arrow is down - Set animation to "Down" (play from beginning)

So now by default my sprite is flapping it's wings, when I press up it changes to the up frame, down changes to down frame, but when it is not pressing up or down, it stays stuck in the same frame.

Now I need to reset the sprite to go back to it's idle (flapping) animation... I believe I need to use "else" to do this, but I couldn't find out how to really do that? Krawwly2013-05-17 16:33:23
B
3
Posts: 5
Reputation: 185

Post » Fri May 17, 2013 4:37 pm

@Krawwly : can't you set the animation to go back to it's flapping animation when you release Up and down? (I could misunderstand it)
https://www.scirra.com/forum/viewtopic.php?t=152506

And that is why you shall respect the bug reports guidelines, not only giving a capx is making the bug reproductible in one click in a situation they can work with (less time wasted trying to reproduce vague instructions) but also it helps filtering false positives.

Game design is all about decomposing the core of your game so it becomes simple instructions.
B
42
S
17
G
16
Posts: 2,089
Reputation: 15,345

Post » Fri May 17, 2013 4:45 pm

@APhrodite Well that's what I am trying to do but I can't seem to set the right event to do that. :(
B
3
Posts: 5
Reputation: 185

Post » Fri May 17, 2013 4:51 pm

Keyboard: On key released (up) : set animation to "idle"
Keyboard: On key released (down) : set animation to "idle"

I think this can do it.

Also:

Keyboard> Up/Down Arrow is down - Set animation to "Down" (play from beginning)

I'm not sure playing from beginning is a good thing in that case
https://www.scirra.com/forum/viewtopic.php?t=152506

And that is why you shall respect the bug reports guidelines, not only giving a capx is making the bug reproductible in one click in a situation they can work with (less time wasted trying to reproduce vague instructions) but also it helps filtering false positives.

Game design is all about decomposing the core of your game so it becomes simple instructions.
B
42
S
17
G
16
Posts: 2,089
Reputation: 15,345

Post » Fri May 17, 2013 4:59 pm

Alright, I'll give that a try and get back to you! Thanks so much for your quick response.
B
3
Posts: 5
Reputation: 185


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests