Fangames > Game Design
[UPDATED] Tutorial: Getting Started With Fangame Development
klazen108:
The view should follow the player perfectly, even if his gravity changes, if you set it up in the room editor.
If you need custom view following code (for whatever reason), you can use this (but be warned it's kinda buggy if you've got anything being draw on screen relative to the view):
--- Code: ---view_xview=player.x-400
view_yview=player.y-300;
if (view_yview<0) view_yview=0;
else if (view_yview+view_hview>room_height) view_yview=room_height-view_hview;
if (view_xview<0) view_xview=0;
else if (view_xview+view_wview>room_width) view_xview=room_width-view_wview;
--- End code ---
Just stick that in the draw event of an object you put in the room and it should work.
PS I recommend you make a new thread for any issue you have, it's more likely to attract attention and makes it easier for people with the same problem to find answers :atkHappy:
Denferok:
Avoidance tutorial pls :Kappa:
klazen108:
Once I'm done making I Wanna Get Rekt, I plan on compiling all the information I've learned from ripping and designing bosses; and there will be plenty of information on your basic patterns and how to go from there :D
TheGamerGuy500:
Hey, um... I try to load a sound buuuuut when I click play I just hear the sound of no one caring (silence)
the mp3 I loaded is good, it can play via media player so what the hell :atkCry:
Is there like a size limit to how big the file can be before it won't even play?
It only does this with sound files that I load, not the built in ones.
If I can't do anything about that, I'll be doomed to use guy rock for the whole game D:
EDITS: I figured it out, you gotta put it in audacity and then export it. The tutorial never said anything about that :FrankerZ:
klazen108:
If you try to use a sound file that you bought from amazon or itunes or something like that, it tends to not work in Game Maker (DRM or something, idk). So yeah running it through audacity can strip off the DRM and let you use it. I guess this could apply to other music files as well, but I haven't had this happen to me often, so I didn't consider it important enough to add to the tutorial.
I might go back in and mention it, maybe in a troubleshooting section for common problems.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version