How i do setup platform wars game?

Get help using Construct 2

Post » Tue Jul 02, 2013 4:10 pm

@Guizmus, thank you for replying
here is Collision Test(1).capx

oh yeah, i got an enlightenment,
if the collision position rather right because the player overlaping the enemy and enter the first if condition
if the collision position rather left because the enemy overlaping the player and enter the third if condition

maybe you can add something for equalize them?

[UPDATE]
hmm, i think the timer is the problem
if i spawn player first, and then spawn enemy
the timer of enemy is didnt start, any idea?yosualb2013-07-02 17:06:51
B
16
S
2
Posts: 39
Reputation: 717

Post » Tue Jul 02, 2013 6:17 pm

I would just add in a variable instance for each character that shows how often they strike (StrikeVar) (say 200 for example). Then every tick add their attack speed to another variable called "WaitHit" or something.

If WaitHit > StrikeVar set WaitHit to 0. Play animation attack.

If Player animation attack is playing, and player is overlapping enemy subtract player.AttPow from enemy.HP.

I wouldn't worry about timer just yet.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 961
Reputation: 10,717

Post » Tue Jul 02, 2013 7:27 pm

@AnD4D, thank you for replying
And if i get 2 Player for attack 3 Enemy, i want to attack 1 on 1 Enemy. Why?
B
16
S
2
Posts: 39
Reputation: 717

Post » Wed Jul 03, 2013 5:44 am

hi @Guizmus, your code has been updated by me
the problem is the timer, i change the timer with Cooldown behavior (created by Rex)

anyway, thank you for helping
maybe next problem i will discuss here again
B
16
S
2
Posts: 39
Reputation: 717

Previous

Return to How do I....?

Who is online

Users browsing this forum: RobertMKD, tarek2 and 10 guests