how: make object stay in same spot

Get help using Construct 2

Post » Sat Sep 28, 2013 9:38 pm

I have a joystick control and as my player moves around, the screen pans but it makes my joystick go off the screen. Because of this, i applied a anchor behavior, but its twitchy and doesn't remain 100% static. how else can i make the joystick stick to the viewable screen?
Football Dash: GooglePlay | AppStore

Zombie Bash: GooglePlay | AppStore

Kunkong: GooglePlay
B
64
S
22
G
3
Posts: 450
Reputation: 6,764

Post » Sat Sep 28, 2013 9:40 pm

There is a bound to layout behaviour that might help.
B
29
S
8
G
4
Posts: 767
Reputation: 5,985

Post » Sat Sep 28, 2013 10:08 pm

[QUOTE=jojoe] There is a bound to layout behaviour that might help.[/QUOTE]

Thanks but that only helps from the object leaving the edges of the screen. It will still move around within the layout, so this method doesn't work.
Football Dash: GooglePlay | AppStore

Zombie Bash: GooglePlay | AppStore

Kunkong: GooglePlay
B
64
S
22
G
3
Posts: 450
Reputation: 6,764

Post » Sat Sep 28, 2013 10:12 pm

Have you heard of layers and their parameters yet? Here's some magic
Image
B
24
S
8
G
10
Posts: 1,821
Reputation: 8,279

Post » Sat Sep 28, 2013 10:40 pm

[QUOTE=tulamide] Have you heard of layers and their parameters yet? Here's some magic [/QUOTE]
You are amazing. I just put the joystick on a new layer and put parallax at 0,0 and now it works! THanks!   
Football Dash: GooglePlay | AppStore

Zombie Bash: GooglePlay | AppStore

Kunkong: GooglePlay
B
64
S
22
G
3
Posts: 450
Reputation: 6,764


Return to How do I....?

Who is online

Users browsing this forum: eca315 and 44 guests