The Daily Click ::. Forums ::. Klik Coding Help ::. Sticky backgrounds
 

Post Reply  Post Oekaki 
 

Posted By Message

Nioreh



Registered
  18/11/2002
Points
  1078
12th August, 2003 at 04:24:16 -

Just wondering if anyone knows of a way to have an image in the background that will follow the playfield as it scrolls?

 
Its hard to be religious when certain people are never incinerated by bolts of lightning.

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
12th August, 2003 at 04:45:23 -

No. That would be an active object, backgrounds don't move. To follow the playfield as something scrolls, tick/untick the "follow the playfield" box.

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  48487

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
12th August, 2003 at 06:17:43 -

Nioreh: are you referring to parallax scrolling?

 
n/a

Nioreh



Registered
  18/11/2002
Points
  1078
12th August, 2003 at 07:00:50 -

Well, kind of like parallax scrolling.

 
Its hard to be religious when certain people are never incinerated by bolts of lightning.

Activ8games



Registered
  02/07/2003
Points
  463
12th August, 2003 at 18:28:25 -

What do you mean kind of like parallax scrolling?

 
Vote Quimby!!!

Nioreh



Registered
  18/11/2002
Points
  1078
12th August, 2003 at 18:58:02 -

Well, I want a picture in the background of my scrolling game and it gives a feeling of depth in the game. It's a space game, so the galaxies and stuff in the background is so far away it's not moving at all. It feels kind of stupid when the stars look like a wall behind the spacecraft.

 
Its hard to be religious when certain people are never incinerated by bolts of lightning.

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
12th August, 2003 at 19:38:00 -

just make sure everthing is an active object and in front of the galaxy. (they have to be active objects too.

right click on the object and choose object preferences
then choose extra and untick follow the playfield.

it should stay where it is but you will only see it if it is in the top left of the playing field and anywhere within the coordinates of the screen size eg 320x200 800x600.

 
.

ruffles



Registered
  15/05/2002
Points
  1090
12th August, 2003 at 19:50:11 -

use a background system object, and use its alterable values to track X and Y. well i use it for clouds and a static screen, dunno how it would really work with scrolling, but it shouldn't be hard.

 
A member of Cysteine Creations: http://www.cysteine.tk
o_O You WAIT

Nioreh



Registered
  18/11/2002
Points
  1078
13th August, 2003 at 16:35:21 -

Well, I guess I'll have to drop the whole background thing and just make it a wall. I have programmed the entire thing for background objects and I just can't start all over, changing every platform in the game to Active objects. I know those are the only ones who are able to follow the playfield (but they don't have to be in the top left corner, do they?). A background plugin thingy would work maybe, but I never use plugins, it's against my religion. = The only plugin I use is the screen resolution plugin and I just might go as far as the DMC (or whatever the mod player is called). But I always try to not use any plugins that will affect the way you program the game, not even fastloop. It's my motto, I feel better with no plugins. I just spent a few months getting a really cool gravity engine working properly without plugins of any sort, and I'm real proud of my skills right now. I know I'm crazy, but it's just my nature.

 
Its hard to be religious when certain people are never incinerated by bolts of lightning.

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
13th August, 2003 at 19:08:49 -

"my hard drive fucked itself"

i dont normally lol but after reading that?

still its a shame.

 
.

Nioreh



Registered
  18/11/2002
Points
  1078
18th August, 2003 at 08:49:37 -

Well, that still kind of needs me to redo the levels with the platforms as active objects, wich sucks. Maybe that's the only way out of the mess I've put myself in. Why god, why?! Why didn't I think of this before I did the engine!?! *Alt + tabbing to cnc for a week of work for nothing*

 
Its hard to be religious when certain people are never incinerated by bolts of lightning.

Daniel[Crazy_Productions]

Possibly Insane

Registered
  29/12/2002
Points
  2505
18th August, 2003 at 11:56:19 -

wy didnt you just open the game file in cnc or whatever u where using and besides you only need to redo a very little part

 
Beware of life ...so far noone have survived it.......
   

Post Reply



 



Advertisement

Worth A Click