help on sidescrolling shooter

Get help using Construct 2

Post » Fri Sep 27, 2013 5:47 pm

Hi, ive been here before asking about layout size, now, what i am making is an R-type kind of game, in such games, the stage scrolls towards the ships whether "right" is pressed or not, but, the player can steer his ship in the confines of the screeen all he wants, it looks like buller and 8-direction combined, can it be done?

On another note, i cannot get the parallax to work correctly, i have sprites layed out for trees sand such, they scroll past the player but i cant get them to reappear at the end of the layou, not even with wrap behaviour.

The layout is quite large, i donpt want to make it though tiled BG fot=r they wil lbe huge.

I have nothing set on my capx about it because nothing worked
B
9
S
2
Posts: 35
Reputation: 668

Post » Fri Sep 27, 2013 9:47 pm

No one?
B
9
S
2
Posts: 35
Reputation: 668

Post » Fri Sep 27, 2013 11:08 pm

OK, i figured watching gradius that i can have the objects coming towards the ship instead o fhte ship going to them, therefore, they originate outside the window and scroll towards the ship.

Problem:

i want to be able to have the ship to fly towards the edges of the screen no just up and down and the behaviour scroll to kinda screws that.
B
9
S
2
Posts: 35
Reputation: 668

Post » Fri Sep 27, 2013 11:51 pm

@Arima

Hi, io understand you were able to figure it out long ago, http://www.scirra.com/forum/space-shooter-scrolling_topic34561.html

could you de so kind as to produce an exemplary CAPX?

Thank you, i am losing my mind here
B
9
S
2
Posts: 35
Reputation: 668

Post » Sat Sep 28, 2013 1:14 am

Give the ship you are controlling 8-direction.
Create an invisible sprite and give it Scroll-To behaviour.
Have the invisible sprite move right constantly (bullet behaviour or movetowardangle etc)
Result: You can move the ship around the screen in 8-direction. There is a camera moving right constantly.
B
47
S
18
G
84
Posts: 2,271
Reputation: 49,796

Post » Sat Sep 28, 2013 3:12 am

Thx plinkie, i did that but the issue is that the ship is able to go outside the visible screen if steered to the front, i tried to have invisible sprites attached to the camera sprite but the back one intercepts the ship and the fron one vanishes even if pinned
B
9
S
2
Posts: 35
Reputation: 668

Post » Sat Sep 28, 2013 3:13 am

@plinkie
B
9
S
2
Posts: 35
Reputation: 668

Post » Sat Sep 28, 2013 10:30 am

Bound to layout behaviour doesn't work?
B
47
S
18
G
84
Posts: 2,271
Reputation: 49,796

Post » Sat Sep 28, 2013 11:35 am

I would recommend using system scroll to action instead of scrollto behaviour. This gives you far greater control over what happens onscreen.
Adding conditions for what happens when ship is further than the camera sprite.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Sep 28, 2013 2:20 pm

@Plinkie - No, for the layout is bigger than the viewing camera
B
9
S
2
Posts: 35
Reputation: 668

Next

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 7 guests