[Solved] - Scrolling Camera Issue

Get help using Construct 2

Post » Sat Dec 28, 2013 9:28 am

I'm trying to make a Thunder Force style Shootemup as my first game.

For 3hours or so now, I've been trying to get a scrolling view - that the player can freely move in, but not out of.

So far, I have Thunder Force like camera with constraint to view.
Every Tick >> Scroll To xBound.X && xBound.Y
This lets you have really tall levels if you want.

The Scroll To function is acting odd.
I have "xBound" object with Bullet behavior, speed of 50.

In game, the views is supposed to be constantly moving Right.
It does, but the xBound object moves off screen right.
It bothers me...

-----------------
Capx
----------------
----------------
Edit: Forgot Ctrls
Arrow Keys - Mvmnt
Num 1-3 Debug Weap Select
"A" - boost
"D" - fireEffregy2013-12-28 11:29:34
B
9
S
2
G
1
Posts: 36
Reputation: 1,381

Post » Sat Dec 28, 2013 10:19 am

Couldn't you have just used 8-direction behaviour instead of all of that xspeed logic for movement? Can't really help with the collision on the border as I'm not sure what you've done but I would guess you can limit Y movement when the UI collides with the left/right side of the ship.

The scrollto behaviour is working as expected. It scrolls with the ship when you move out of the 1280x960 window view.
B
46
S
16
G
76
Posts: 2,150
Reputation: 45,313

Post » Sat Dec 28, 2013 10:29 am

I'd heard about *dt stuff somewhere and wanted to try it out lol.
Yeah, just ignore the movement stuff.

The scrolling works, but the Green square it's supposed to keep in center view, scrolls off screen.



It also does not allow for cam changes in movement angleEffregy2013-12-28 11:18:26
B
9
S
2
G
1
Posts: 36
Reputation: 1,381

Post » Sat Dec 28, 2013 11:21 am

Sorry not got time to go through it all but make sure you have your green square on the correct layer (you have it on the ui at the moment ?) and also should the the scroll to be going to playerbox.y or xbound.y ?

August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Sat Dec 28, 2013 11:28 am

If you need to facepalm yourself... you're probably tired lmao


Thats like the only thing I didn't check...

The ways its set up...
system-every tick>>>>scroll to>>>xBound.X && playerBox.Y

Allows player to control what height, and path they want to take.

Thunder Force 4 did a lot of this.   
B
9
S
2
G
1
Posts: 36
Reputation: 1,381


Return to How do I....?

Who is online

Users browsing this forum: batto, Elliott, kellehk, oosyrag, totoe and 28 guests