I have 3 Questions

Get help using Construct 2

Post » Thu Nov 20, 2014 11:23 am

Hey Guys :)

So im trying to create a game like "The Binding of Isaac". But in my program i have 3 problems.

1.: I'm using a special (i think) way for the Movement. Is it possible to move 8 way with this and if yes how?

2.: As you see in the Project my character has moving-Animations. First they worked but then suddenly, without changing anything, they do not work anymore :/ Any Help?

3.: As you see, I can shoot Bullets (Eggs). But they only fly in one direction. I know i have to change the angle to change that, but then my character rotates, as i have to rotate my character to shoot in another direction..

Sorry for all the questions but im quite new, and i didnt find anything about these in the Tutorials. Thanks in advance for all help :)

Game is attached
You do not have the required permissions to view the files attached to this post.
B
4
Posts: 23
Reputation: 248

Post » Thu Nov 20, 2014 12:04 pm

Hi awesmeraphi! It might be better to make three separate posts in future, as each problem can then be discussed separately. I'll have a look at these for you.
Image
B
9
S
3
G
1
Posts: 346
Reputation: 1,560

Post » Thu Nov 20, 2014 12:13 pm

When I try to open the capx I get the following message:
Some files are missing from the project. They may have been deleted, or the project may be corrupt.
Image
B
9
S
3
G
1
Posts: 346
Reputation: 1,560

Post » Thu Nov 20, 2014 12:13 pm

Is there a reason why you are using your own method for the movement?

About the animations, the problem is that you are setting the animation to neutral every tick with an event inside the MeMovement group. This probably worked before because you had the events arranged in a different order, but since you have this one first, it takes priority over the events that control the other animations. If you don't want to change the order, just create a condition on the neutral event that says "if keyboard key D isn't down" and repeat this condition for each movement key.

For the bullet, you need to create an instance variable on the character (call it player_angle for instance), and when you push a key to change direction, change that variable to the right angle (if you push D, set the angle to 0, if you push S set the angle to 90...). Then after you spawn the PBullet, change it's angle to the player_angle instance variable.
B
74
S
28
G
17
Posts: 256
Reputation: 15,125

Post » Thu Nov 20, 2014 1:15 pm

hundredfold wrote:When I try to open the capx I get the following message:
Some files are missing from the project. They may have been deleted, or the project may be corrupt.


I think these are the icon-pngs and the loading png, im getting that error on start too, but it doesnt seem to affect anything
B
4
Posts: 23
Reputation: 248

Post » Thu Nov 20, 2014 1:27 pm

Xavier wrote:Is there a reason why you are using your own method for the movement?

About the animations, the problem is that you are setting the animation to neutral every tick with an event inside the MeMovement group. This probably worked before because you had the events arranged in a different order, but since you have this one first, it takes priority over the events that control the other animations. If you don't want to change the order, just create a condition on the neutral event that says "if keyboard key D isn't down" and repeat this condition for each movement key.

For the bullet, you need to create an instance variable on the character (call it player_angle for instance), and when you push a key to change direction, change that variable to the right angle (if you push D, set the angle to 0, if you push S set the angle to 90...). Then after you spawn the PBullet, change it's angle to the player_angle instance variable.


Well i didnt know how to make Movement in that "from above" games, and that was the only thing i found :/ I would be pleased if you could tell me a way i can do a proper 8waymovement in that above games, i tried it another way before but then my Charactersprite rotated when moving..

Oh wow thanks, now it works :)

Hmm, i tried that, now, wehn starting the game, i get the attached error.. Im often getting this error, but just starting it new works most times, but now it doesnt
You do not have the required permissions to view the files attached to this post.
B
4
Posts: 23
Reputation: 248

Post » Thu Nov 20, 2014 1:40 pm

The game already has movement behaviors, that's why I asked. Did you try those? Specially the 8 Direction behavior. You can simulate the controls with whatever keys you want.

Are you using the latest version of C2? Does that error happens with all browsers? It doesn't happen to me.
B
74
S
28
G
17
Posts: 256
Reputation: 15,125

Post » Thu Nov 20, 2014 1:55 pm

Xavier wrote:The game already has movement behaviors, that's why I asked. Did you try those? Specially the 8 Direction behavior. You can simulate the controls with whatever keys you want.

Are you using the latest version of C2? Does that error happens with all browsers? It doesn't happen to me.


Yeah i tried those and i did it like: On D Pressed -> set Playerangle to 0 and this for all Directions, but then it rotates the player :/

Hmm, the error is away now .. But i still would like to have a 8 way movement, where my player doesnt rotate + when im moving up it should play the up animation and when im going like up-right it should still play the up anmiation
B
4
Posts: 23
Reputation: 248

Post » Thu Nov 20, 2014 2:08 pm

You need to use the action Simulate Control instead of changing the angle.
B
74
S
28
G
17
Posts: 256
Reputation: 15,125

Post » Thu Nov 20, 2014 2:50 pm

awesmeraphi wrote:But i still would like to have a 8 way movement, where my player doesnt rotate + when im moving up it should play the up animation and when im going like up-right it should still play the up anmiation


..................
You do not have the required permissions to view the files attached to this post.
Image
B
65
S
23
G
7
Posts: 1,505
Reputation: 10,896

Next

Return to How do I....?

Who is online

Users browsing this forum: evillair, gamecorpstudio, jorgmaquoi, Yahoo [Bot] and 26 guests