Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Probably a silly 2D question about a vertical scroller...

Author
Message
Zen_Budha
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Water Valley, MS
Posted: 19th Oct 2003 19:23
Ok I understand how to make the screen scroll, but thats not my qyestion.
I want like a border on one sie where it shows score, and things like that. Do I just scroll the background image along side the stationary image, and set collision so the players vehicle, and enemy vehicles won't drive on it?

A good example although it's not what I'm doing, but similar is a space shooter. Where on the right side you have a pannel that shows score, power ups, and remaining lives, as well as current level.
The background scrolls next to it making the ship look as though it's flying.

I just want to know if I've got my head wrapped around this the right way.

He who stands on toilet is high on pot!
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 19th Oct 2003 20:18
Things that don't move are locked to the screen, with Lock Object On.

Lock Object On 1

The rest of your program should still work ok without many changes, just stop the player from moving over your score by checking the X coordinate.

Pincho.
Zen_Budha
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Water Valley, MS
Posted: 19th Oct 2003 21:04
Ok thanks that clears things up for me.

He who stands on toilet is high on pot!
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 20th Oct 2003 10:46
Also, if your score panel is 2D then you could turn it into a sprite and place it at the screen co-ordinates.
KamaKase
21
Years of Service
User Offline
Joined: 29th Oct 2002
Location:
Posted: 21st Oct 2003 22:48
Making sure that it has a higher priority than any other sprites.
Northern Fist
20
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 22nd Oct 2003 17:29
@ KamaKase

Yep, that's vitally important, especially for advanced 2D games. It's what turned me away from 2D to 3D. It was actually more work than 3D to get stuff like parallax scrolling, and hundreds of sprites working properly in the correct drawing order. True, there is a mappy engine created at the guys at UWDesigns that take care of this, but I felt like I was swatting a fly of a project (that was only meant to educate me) with a shotgun.

I'm not saying that 2D can't work for other people - maybe I'm just too lazy.

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)

Login to post a reply

Server time is: 2024-04-28 07:30:29
Your offset time is: 2024-04-28 07:30:29