Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> SOLVED, Lock/Delete Please
India
Char
Posted: Nov 9 2007, 11:19 AM
Quote Post


fad was bad
[M][*][*]

Group Icon
Group: Admins
Posts: 2123
Member No.: 2856
Joined: 25-October 06

Status: (0d) [--]


There's no use explaining this in words, because I suck at explaining ;-;
but yeah, supposing I'm in a situation like this
CODE

XYZABCDEFGHIJKLM
   N    P        O

N = Player
O = Warper
P = Position where you're warped
other letters = Background
So as you see, N is moving towards O. When he touches O, he gets warped to P.
O is below "GH" and P is below "BC"
When the player warps, the background will change from FGHI to ABCD.
This is not what I want
what I want is, when the player is warped/teleported/blah'd, the background remains ABCD.
yes, it's parallax. Help will be appreciated (+ credit =D)


SOLVED

This post has been edited by Elite Charizard on Nov 10 2007, 11:59 AM


--------------------
aa this broke


Make your own | If a level is breaking the rules, note the ID and PM me.
Reference (thanks Frogjester!)
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
United States
Elyk
Posted: Nov 9 2007, 04:03 PM
Quote Post


Standard Member
[*][*][*][*]

Group Icon
Group: Members
Posts: 6604
Member No.: 3808
Joined: 22-May 07

Status: (0d) [--]


you could use

backgound_x[#]
background_y[#]

changingit to fit to your player's position
the # being the current BG number

This post has been edited by Elyk19 on Nov 9 2007, 04:15 PM


--------------------
user posted image
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
Noone
Posted: Nov 9 2007, 06:13 PM
Quote Post


You win the prize!!!
[*][*][*]

Group Icon
Group: Members
Posts: 511
Member No.: 3101
Joined: 23-December 06

Status: (0d) [--]


CODE

//Untested. Should work.
old_xview=view_xview;
old_yview=view_yview;
//warp stuff
backgound_x[0]=view_xview-old_xview;
backgound_y[0]=view_yview-old_yview;


--------------------
user posted image
PMEmail PosterUsers WebsiteICQAOLYahooMSN
Top
India
Char
Posted: Nov 10 2007, 01:14 AM
Quote Post


fad was bad
[M][*][*]

Group Icon
Group: Admins
Posts: 2123
Member No.: 2856
Joined: 25-October 06

Status: (0d) [--]


QUOTE (Elyk19 @ Nov 10 2007, 02:33 AM)
you could use

backgound_x[#]
background_y[#]

changingit to fit to your player's position
the # being the current BG number

I already tried that. I'm using parallax, just fyi.

Best Games Forever: ...Almost. It still shows the background switching position (which was my problem), but your method makes it kinda less-obvious. Thanks.

I'm not putting this as solved because the background still shows the "background position switching" thing, which I don't want. Help will be appreciated.

also, why is everyone typing "background" as "backgound"?


Edit: SOLVED! THANK YOU TREEKI!

This post has been edited by Elite Charizard on Nov 10 2007, 11:59 AM


--------------------
aa this broke


Make your own | If a level is breaking the rules, note the ID and PM me.
Reference (thanks Frogjester!)
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0541 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 1.87 ]