pin sprites

Get help using Construct 2

Post » Tue Mar 19, 2013 12:44 am

hello.
i have a doubt with using pin with my sprites, i have a sprite for the hitbox for my enemies and the animations of them in other sprite. so i pined the sprite with the animations to the hitbox but it only pins to one enemy,i want to know if exist something to pin the sprite to all my enemies or if it is better to use only the sprite with the animations for the collitions or have the two sprites separated for my enemies.

pd: sorry for my bad english :P

Edit: here is my capx, you can see what is happening, it only pins to one enemy, also i have a problem with the ai, i need the robits to stop if they are to close to the player but they keep moving.

Edit 2: fixed the issue with the animations and the ai.
       i need help with only 2 issues now:
       1: all the enemies set mirrored if one of them is mirrored
       2: if you kill one enemy all die.


the robits are in the layout 2 and the events in the event sheet 2.

capx actualized.
https://www.dropbox.com/s/54ilfgme8vbt1xz/cosa.capx

thanks.haifisch2013-03-21 05:44:04
B
17
S
2
G
2
Posts: 82
Reputation: 1,712

Post » Tue Mar 19, 2013 4:59 am

i have actualized the capx, i fixed the issue with the pins sprites. but i need help with the animations and another issue: if u kill one enemy allthe others die.
if someone could check my capx and help me pls.
thanks.haifisch2013-03-19 05:02:30
B
17
S
2
G
2
Posts: 82
Reputation: 1,712

Post » Tue Mar 19, 2013 5:04 am

you have to create a event like this (check "Bullet On created"):

B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Post » Tue Mar 19, 2013 5:16 am

thanks for helping me, but i fixed that, now i only have the issues with the animations and the dead of all the enemies if u kill only one xD
B
17
S
2
G
2
Posts: 82
Reputation: 1,712

Post » Tue Mar 19, 2013 9:08 am

I got some problem with pin behavior too. The object I pinned won't follow the host object. I double-checked it and compare it with tutorials and nothing wrong...the pinned object just floating there not following the host...is it a bug or any case like this??
B
12
S
3
G
4
Posts: 56
Reputation: 3,235

Post » Tue Mar 19, 2013 9:12 am

[QUOTE=r4dicaldreamer] I got some problem with pin behavior too. The object I pinned won't follow the host object. I double-checked it and compare it with tutorials and nothing wrong...the pinned object just floating there not following the host...is it a bug or any case like this??[/QUOTE]

Post a .capx of your problem, otherwise we can't really help you with problem like this :)vee412013-03-19 09:12:56
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Tue Mar 19, 2013 3:28 pm

@r4dicaldreamer check my capx y fixed that with the pins, now it works, but i have the issue with the animations if u can check my capx and help me i would appreciate it.
B
17
S
2
G
2
Posts: 82
Reputation: 1,712

Post » Wed Mar 20, 2013 12:07 am

bump
B
17
S
2
G
2
Posts: 82
Reputation: 1,712

Post » Wed Mar 20, 2013 3:18 am

@haifisch
let me see what I can do
B
12
S
3
G
4
Posts: 56
Reputation: 3,235

Post » Wed Mar 20, 2013 4:41 am

@r4dicaldreamer thanks, that is the only thing that i need to fix (the animations bug and the thing that all enemies die if you kill only one) to continue with my game. if you could help me i would appreciate it.
B
17
S
2
G
2
Posts: 82
Reputation: 1,712

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests