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?
Check out my games on Google Play:
BEAST ATTACK (1,000,000+ downloads!)
ZOMBIE BASH (Android) (Launched Feb 17)
ZOMBIE BASH (iOS) (Launched March 17)
B
56
S
18
G
2
Posts: 440
Reputation: 5,640

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.
Check out my games on Google Play:
BEAST ATTACK (1,000,000+ downloads!)
ZOMBIE BASH (Android) (Launched Feb 17)
ZOMBIE BASH (iOS) (Launched March 17)
B
56
S
18
G
2
Posts: 440
Reputation: 5,640

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!   
Check out my games on Google Play:
BEAST ATTACK (1,000,000+ downloads!)
ZOMBIE BASH (Android) (Launched Feb 17)
ZOMBIE BASH (iOS) (Launched March 17)
B
56
S
18
G
2
Posts: 440
Reputation: 5,640


Return to How do I....?

Who is online

Users browsing this forum: Euduardo, Kin, mikehive, ratboy3, tinhofiel and 36 guests