float up with balloon

Get help using Construct 2

Post » Mon Aug 18, 2014 9:20 pm

When my character sprite comes up to the balloon, I want her to change her animation to having her hands held out and she looks like she is hanging. That is in place. I have to disable controls because if they press left or right it will set her animation to default. She goes up with the balloon... but her animation is not changing to "Ballooning" it just stays default and I'm not sure why?

Image

and here is the ballooning animation:

Image
B
18
S
2
Posts: 61
Reputation: 902

Post » Mon Aug 18, 2014 9:30 pm

This usually happens if the default animation event is below your desired animation in the list and all conditions for the default are met at the same time. You can test this by moving the event for the balloon animation below the default animation.
B
40
S
12
G
11
Posts: 331
Reputation: 7,752

Post » Mon Aug 18, 2014 9:33 pm

Ballooning is the bottom animation. It's new I just added it and it is the last.
B
18
S
2
Posts: 61
Reputation: 902

Post » Mon Aug 18, 2014 9:46 pm

I'm not sure why you are messing with the timescales, and instead of disabling the behaviours you might want to just stop the movement an use start ignoring input, also i wouldn't use is overlapping, but use a trigger like on collision and moving the balloon 250 pixels in one tick doesn't sound like a good balloon movement..

So I guess I don't understand what you are trying to do in this event..

something like this should work:

player on collision with balloon
- player pin to balloon
- player start ignoring input
- player set animation
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Aug 18, 2014 9:55 pm

@LittleStain I never heard of ignore input where do I find that? I just put 250 pixels to test it.
B
18
S
2
Posts: 61
Reputation: 902

Post » Mon Aug 18, 2014 10:06 pm

it's one of the actions of 8 direction behaviour and platform behaviour..
you find it where all the other actions are..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Aug 18, 2014 10:15 pm

Thank you! :) Well that works but still the same problem... her animation is not changing.

Image
B
18
S
2
Posts: 61
Reputation: 902

Post » Mon Aug 18, 2014 10:41 pm

You probably have a conflicting event setting animation somewhere..

if both events have conditions that are true, both events will be executed every tick, so it seems like nothing happens..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Aug 18, 2014 10:51 pm

Problem is somewhere else than on this event. You are probably instantly changing the animation to default so it doesn't take affect. I would suggest some type of state variable that you take into account when setting idle animations and others.

For example when you hit the balloon set state variable "ballooning"
When state "ballooning" and button x pressed set state variable "regular"
when state variable "regular" and move set animation to walk etc...
B
34
S
9
G
3
Posts: 517
Reputation: 5,246

Post » Mon Aug 18, 2014 11:01 pm

That sounds right @Katala I will try that and post the results tonight or tomorrow... out of time for the moment..
B
18
S
2
Posts: 61
Reputation: 902

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests