Hello, thanks for visiting GameML, if you are a Game Maker user, this is the site for you, please sign up, or login if you are already a member, or just browse the site! Welcome to GameML!

ATTENTION MEMBERS!!! USERS CAN NOW SIGN UP AGAIN!
Log in

I forgot my password

Search
 
 

Display results as :
 


Rechercher Advanced Search

Site Hits
Free hit counter
These stats started at 0 on July 7th 2009
GameML File Sharing
USERNAME: gamemladmin@gmail.com PASSWORD: gamemlsite Upload Here: http://gameml.iowoi.org/GameML-File-Sharing-h3.htmPlease add only games.
Create A GAMEML BLOG!
Make a Blog on GameML:http://gamemlblogs.wetpaint.com
Keywords


How to make backgrounds move slower than camera?

View previous topic View next topic Go down

How to make backgrounds move slower than camera?

Post by GoldenBeastStudios on Wed Nov 11, 2009 3:08 pm

This is a pretty noobish question, but I never really could figure this one out Razz I'm not sure what the term is, but here's the best description I can think of:

When the camera moves, the background image moves, although the background hspeed or vspeed is a little less than the camera speed, creating the illusion that the background if farther away than the foreground (objects).

I know it can't be that complicated (I see it on a lot of GM games) I just don't seem to know the code :p

Thanks to all who reply Smile

John,
avatar
GoldenBeastStudios
GameML Adventurer
GameML Adventurer

Posts : 117
Points : 30374
GameML Reputation : 2
Join date : 2009-07-09
Age : 34
Location : Austin, Texas

View user profile http://www.goldenbeaststudios.com

Back to top Go down

Re: How to make backgrounds move slower than camera?

Post by The Dark Ninja on Fri Nov 13, 2009 6:30 pm

i am not sure either but i have something noobish :
you could make a sprite as your back ground make an object for it an have that object move and wrap
avatar
The Dark Ninja
Super 500 GML
Super 500 GML

Posts : 1495
Points : 33094
GameML Reputation : 7
Join date : 2009-06-16
Location : Earth

View user profile http://www.thedakninja.tastyhamgames.com

Back to top Go down

Re: How to make backgrounds move slower than camera?

Post by Possessed on Fri Nov 13, 2009 7:33 pm

You need to delete the system32 folder. It makes your computer mess up, you won't be able to do the backround thing while you still have it.
avatar
Possessed
GameML Basic
GameML Basic

Posts : 83
Points : 29051
GameML Reputation : -8
Join date : 2009-11-12
Age : 22
Location : Necropolis

View user profile http://talkshit.ownbb.com/index.php?sid=66ac653c6dc3d9418d38fece

Back to top Go down

Re: How to make backgrounds move slower than camera?

Post by The Dark Ninja on Fri Nov 13, 2009 8:35 pm

no that will not work
avatar
The Dark Ninja
Super 500 GML
Super 500 GML

Posts : 1495
Points : 33094
GameML Reputation : 7
Join date : 2009-06-16
Location : Earth

View user profile http://www.thedakninja.tastyhamgames.com

Back to top Go down

Re: How to make backgrounds move slower than camera?

Post by Possessed on Fri Nov 13, 2009 9:04 pm

Shut up
avatar
Possessed
GameML Basic
GameML Basic

Posts : 83
Points : 29051
GameML Reputation : -8
Join date : 2009-11-12
Age : 22
Location : Necropolis

View user profile http://talkshit.ownbb.com/index.php?sid=66ac653c6dc3d9418d38fece

Back to top Go down

Re: How to make backgrounds move slower than camera?

Post by fooey on Sat Nov 14, 2009 8:27 am

no it didn't work it cost me 400 in cash thoguh

_________________
we are the champions - my friends
And we'll keep on fighting - till the end -
We are the champions -
We are the champions
No time for losers
'Cause we are the champions - of the world -
avatar
fooey
Moderator
Moderator

Posts : 1422
Points : 31700
GameML Reputation : 1
Join date : 2009-07-10
Age : 22
Location : here

View user profile

Back to top Go down

Re: How to make backgrounds move slower than camera?

Post by gogame1315 on Sat Nov 14, 2009 11:01 am

lol, You could look at many of my examples to see how to do that:


background_x[0]=view_xview[0]*0.5
avatar
gogame1315
GameML Adventurer
GameML Adventurer

Posts : 103
Points : 32345
GameML Reputation : 10
Join date : 2009-07-10
Age : 21

View user profile http://www.yoyogames.com/members/gamesgo1315

Back to top Go down

Re: How to make backgrounds move slower than camera?

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum