[ 3 posts ]  Reply to topicPost new topic 
Author Message
 [zz]
 Post subject: sun and moon not following the view [SOLVED]
PostPosted: Mon Dec 06, 2010 11:27 pm 
User avatar
Lucario and/or Braixen = best avatar
Member
[*]
[*]
[*]
[*]
[*]

[SOLVED]

The objects themselves that do the drawing must also follow the view, as the code makes the sun and moon fade out as they go offscreen.

The sun and moon in my game, I cannot get them to follow the screen D: they circle the screen perfectly, but won't follow the view.
I'll post the code that the sun and moon use here. Anyone who could help, please give me a hand

obj_sun:
Spoiler:


Last edited by smbmaster99 on Tue Dec 07, 2010 7:49 pm, edited 1 time in total.
_________________
Games I've made:

Spoiler:

Fangame(s) I support:
Spoiler:


You can find me on:
Image Image Image Image Image


These are my Smashers of choice:
Image
 
Top
Offline 
 
 
 [zz]
 Post subject: Re: sun and moon not following the view
PostPosted: Tue Dec 07, 2010 7:48 pm 
User avatar
Lucario and/or Braixen = best avatar
Member
[*]
[*]
[*]
[*]
[*]

I solved it ^( ^

I changed this:
Code:
flareSizeX=view_wview[0]/2-x;//Realistically, you probably have views, which would require an actual calculation here.
flareSizeY=view_hview[0]/2-y;//Note that means these two lines must very likely be replaced when put into actual use.

to this:
Code:
flareSizeX=view_xview[0]+160-x;//Realistically, you probably have views, which would require an actual calculation here.
flareSizeY=view_yview[0]+120-y;//Note that means these two lines must very likely be replaced when put into actual use.


and it works perfectly ^( ^

thanks to all ^( ^

_________________
Games I've made:

Spoiler:

Fangame(s) I support:
Spoiler:


You can find me on:
Image Image Image Image Image


These are my Smashers of choice:
Image
 
Top
Offline 
 
 
 [us]
 Post subject: Re: sun and moon not following the view [SOLVED]
PostPosted: Wed Dec 29, 2010 12:08 am 
User avatar
Ready to launch! And set for action!
Member
[*]
[*]
[*]
[*]
Hey, I tried finding out how to make a Sun on Game Maker! Thanks, can I use your code, please? I'll give credit!

_________________
I go by the name Mikeystar, one of the GM programmin' experts in my fangame, SM: ASA!
This is such a passionate fangame that I work on. I really do my best to make it a aesthetically and technically amazing SMB3 Fangame.

Image

Spoiler:
 
Top
Offline 
 User page at mfgg.net
 
« Previous topic | Next topic »
Display posts from previous:  Sort by  
 [ 3 posts ]  Reply to topicPost new topic 


Who is online

Users browsing this topic: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group