I need help with my game

Get help using Construct 2

Post » Fri Oct 06, 2017 4:51 am

Add this line at the start of layout:
Player -> Set position to another object -> to CharacterAnimation
It should be before the Pin!

And fix Origin image point position for ALL your animations (character, enemy, walking, standing etc.) and for all frames inside these animations.
Check out my awesome game Doptrix
B
17
S
9
G
50
Posts: 829
Reputation: 27,967

Post » Fri Oct 06, 2017 5:03 am

Thank you this helped a lot

Also do you's know how to get the enemy to follow you i've tried a few other tutorials but they don't seem to work
B
5
Posts: 7
Reputation: 249

Post » Fri Oct 06, 2017 5:31 am

KingKong1234 wrote:Thank you this helped a lot

No problem mate


Also do you's know how to get the enemy to follow you i've tried a few other tutorials but they don't seem to work


I posted some examples on here you can have a look, basically, the simplest way is using the Line of sight and set the Follow range to whichever you like

https://www.scirra.com/forum/viewtopic.php?f=147&t=196058&p=1141520#p1141520



or


Here
https://www.scirra.com/forum/viewtopic.php?f=147&t=195601&p=1139195#p1139195
B
40
S
22
G
81
Posts: 297
Reputation: 44,735

Post » Fri Oct 06, 2017 6:02 am

Message: KingKong1234 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
I've fixed up a few things but when i shoot it only goes to the right, is there any way i can shoot the way that my character is facing?

www.dropbox.com/s/e77za7hle3l7ipr/Survivor.capx?dl=0
B
5
Posts: 7
Reputation: 249

Post » Fri Oct 06, 2017 6:50 am

KingKong1234 wrote:I've fixed up a few things but when i shoot it only goes to the right, is there any way i can shoot the way that my character is facing?

http://www.dropbox.com/s/e77za7hle3l7ip ... .capx?dl=0



I must be blind haha because I can't see any shooting here :D

That's the only thing I could find referencing to this and here you follow not shooting
https://www.dropbox.com/s/z1qkyjxot6awso1/shootingProblems.png?dl=0

On here I just see that you spawning Enemies every 5 sec
And if the have Line of sight then you trying to make them follow the player but here are the problems what i see:
1-you moving at the Angle ( X ) ?? and Distane ( Y )??
https://www.dropbox.com/s/z1qkyjxot6awso1/shootingProblems.png?dl=0
that's wrong when they ask you to enter the Angle you should enter the angle between enemy and player
Then on the Distance, you should enter the Speed to move the enemies

Something like this
https://www.dropbox.com/s/yi8imvgf4a19e64/shooting2.png?dl=0


2-You have a conflict between the two ways that you add for moving Enemies, one is the bullet and the other one is the (Move at Angle) so the bullet is moving at the right which is at angle 0 the default angle and then you have where is the line of sight event the (Move at Angle) so both are fighting there for moving the enemies

So or either you move by (bullet behavior) or either move by (Move at Angle) you cant have both at the same time, if you change the Move at Angle the same as the last picture I showed you and disable the bullet for the enemies and it will work

Or if you wanna move them by Bullet behavior then you just replace the Action from the line of sight event to
Enemy>>> Set bullet Angle of motion To >>> angle(Enemy.X, Enemy.Y, Player.X, Player.Y)


I'm gonna leave you some tutorials to have a look you should read them before you carry on they will help you a lot to avoid future Problems
https://www.scirra.com/tutorials/37/beginners-guide-to-construct-2

https://www.scirra.com/tutorials/253/how-to-make-a-platform-game
Last edited by tarek2 on Fri Oct 06, 2017 10:37 am, edited 2 times in total.
B
40
S
22
G
81
Posts: 297
Reputation: 44,735

Post » Fri Oct 06, 2017 8:36 am

I also recommend you fixing your animations - crop unused space, make sure origin point is in the same position on all frames, simplify your collision polygons. Your sprites are very small, you don't need complex collision polygons, they are bad for performance.

Image
Check out my awesome game Doptrix
B
17
S
9
G
50
Posts: 829
Reputation: 27,967

Previous

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 20 guests