How? pin invisible object to player(pin behavior not work)

Get help using Construct 2

Post » Sat Apr 30, 2016 1:47 pm

Ok Iam having a ton of trouble with something I though would be easy. I have a player sprite and I want to pin an invisible sprite under him.

Game rules are very simple
Enemy touches player, player dies
invisible sprite touches enemy, enemy dies

I used the exact same code I saw in a video and it does not work even though in the video somehow it does work. This is the video I watched
https://www.youtube.com/watch?v=on6pzNXcxKw

The code in my game is
Code: Select all
system on every tick = sprite pin pin to player
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 682
Reputation: 16,615

Post » Sat Apr 30, 2016 3:01 pm

pin on every tick...? you need to pin only once and the object will be pinned permanently until you unpin it.
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Sat Apr 30, 2016 4:15 pm

I found another youtube video and that one worked. Instead of every tick it had on layout start.
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 682
Reputation: 16,615


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, GrogIsGood and 4 guests