How do I make a object stay in my view?

Get help using Construct 2

Post » Fri Mar 10, 2017 8:34 pm

Ok im trying to make a icon that shows you have the item but every time i do it either dosnt appear when my parallax is 0,0 or when i have a anchor on it but when i don't have them on it will appear but wont stay in my view so the player dosn't now if he has it or not and i am a beginner :|
B
4
Posts: 13
Reputation: 226

Post » Fri Mar 10, 2017 8:44 pm

lukedevel wrote:Ok im trying to make a icon that shows you have the item but every time i do it either dosnt appear when my parallax is 0,0 or when i have a anchor on it but when i don't have them on it will appear but wont stay in my view so the player dosn't now if he has it or not and i am a beginner :|


https://www.scirra.com/tutorials/37/beg ... t-2/page-7
B
13
S
7
G
4
Posts: 415
Reputation: 4,154

Post » Fri Mar 10, 2017 8:46 pm

You can pin it to the player and just make it visible when needed.

If your player is going to the top your icon is probably off the screen.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,800

Post » Fri Mar 10, 2017 9:08 pm

The pin didnt work it just spawns in but after dosn't move with me
B
4
Posts: 13
Reputation: 226

Post » Fri Mar 10, 2017 9:11 pm

Do you have it set to anchor by any chance?

If you do take that off because that will prevent it from moving.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,800

Post » Fri Mar 10, 2017 9:13 pm

no if i had it on anchor the object woudn't spawn at all
B
4
Posts: 13
Reputation: 226

Post » Fri Mar 10, 2017 9:28 pm

lukedevel wrote:no if i had it on anchor the object woudn't spawn at all


OK why are you using spawn for an icon and are you pinning it in the same event when you spawn?
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,800

Post » Fri Mar 10, 2017 9:31 pm

Ok here is the code
player-on collision with key-destroy key-set HUD key to animation frame 1
but i wont appear if the parallax is 0.0, if anchor is on or if it is pinned it will appear just won't follow me.
and if those are of it wont follow me
And i said spawn cause that what popped into my head
B
4
Posts: 13
Reputation: 226

Post » Fri Mar 10, 2017 9:49 pm

lukedevel wrote:Ok here is the code
player-on collision with key-destroy key-set HUD key to animation frame 1
but i wont appear if the parallax is 0.0, if anchor is on or if it is pinned it will appear just won't follow me.
and if those are of it wont follow me
And i said spawn cause that what popped into my head


I would have to see your capx. Not even sure what you are doing from that.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,800

Post » Fri Mar 10, 2017 9:59 pm

Is there a way for toy see my capx?
B
4
Posts: 13
Reputation: 226

Next

Return to How do I....?

Who is online

Users browsing this forum: koops and 7 guests