3 questions

Get help using Construct 2

Post » Sat Dec 29, 2012 11:34 am

Hey everyone,

I am making a platform game and I'm just wondering how I can set an animation for attacking while jumping instead of the same attack while on the ground (while using the same button to attack as I do on the ground).

2nd question is how could I make a dash happen. I have the sprite for it and have his mad speed going higher during that sprite, but I still have to hold the direction I want to go (which I don't want to have to do). Also I am having trouble getting him to stop having that max speed after dashing. I have it set to where to whole animation plays and then he will be slow again, but if I jump or some other sprite int interrupts the "dash" sprite he continues to go at a ridiculous speed.

3rd question is I have a combo made of 3 different "Attacks" (all the same button). If I click too fast then I cannot use the attack at all anymore....anyone know how to prevent this?

https://www.dropbox.com/s/2h81lhsa2ux8y2v/Test2.capx

Controls: W = Jump, A = Left, D = Right, Shift = Dash, Left Mouse Click = Attack (which is a combo).



I know this is a lot for one post, but I thought it would be best to put it all together. Sorry if it's any inconvenience and thanks for any effort to help.MAVERICK2012-12-29 11:41:51
B
23
S
6
G
3
Posts: 122
Reputation: 2,922

Post » Sat Dec 29, 2012 1:11 pm

I'm not at home so i can only share theory :D

1. You can check to see if your character is in the air or ground. Add that to your condition. Or more specifically

On Attack Button
-> onGround - do events
-> inAir - do events

however an alternative which reduces condition checks. Assume player starts on ground :D

Group Ground
Jump button -> Jump, enable Group Air, disable Group Ground
attack button -> do ground attack

Group Air
onlanding -> enable Group Ground, disable Group Air
attack button -> do air attack


2. more manual control of the setVelocity and or speed. As practice just set speed for each action. this way interupts will change the speed back to normal. I'm not sure if your looking for Velocity or Speed.

3. you need more conditions.
conditions:
attackbutton
and NOT(animationFrame > attackFrame First) & (animationFrame < attackFrame last)
action-> do attack

B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Sat Dec 29, 2012 1:46 pm

I can not help you with your problems, but I want to give you some advice.

You are not allowed to use mega man sprites in your game, because the mega man franchise is copyrighted. At least you should avoid to use them in commercial games, otherwise you are likely to get sued.
B
8
S
2
Posts: 110
Reputation: 1,463

Post » Sun Dec 30, 2012 5:24 am

Yes Astrosus, I am aware of this. I'm just using the sprites to practice with. Not planning on releasing this.

jayderyu - I got the jump down now working on the rest. Thanks
B
23
S
6
G
3
Posts: 122
Reputation: 2,922

Post » Sun Dec 30, 2012 9:17 am

I think I need a bit more explanation for the 2nd and 3rd Jayderyu
B
23
S
6
G
3
Posts: 122
Reputation: 2,922

Post » Sun Dec 30, 2012 9:23 am

Here is what I have as of now:

https://www.dropbox.com/s/2h81lhsa2ux8y2v/Test2.capx
B
23
S
6
G
3
Posts: 122
Reputation: 2,922


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 27 guests