Description: view tecnique/example that will zoom in/out so that all characters can be seen. Just like in the game Super Smash Brothers.
Type: .gm6 and .gmk
GM Version: 6.0, 6.1, 7.0 Unregistered! (see below)
Link: Host A or Host B
File size: 103 KB
I have been getting a lot of PMs asking for help... AND I LOVE IT! I really enjoy helping people so go ahead and ask me! My only condition is that you make a honest effort to learn what I helped you with, because if you have everyone else do all your work, and you never learn anything, how are you going to get better? Anyway, I love taking questions so ask up! It doesn't have to be about the SSB Camera, It can be about anything!
Unregistered users CANNOT use the HUD drawing scripts. Delete the HUD scripts in the "control" object under the draw event before running the example.
Otherwise, now completely works for unregistered.
As Seen In
Naruto: Ninja Way by Geou
If you used my engine in a Game or WIP please PM me with the URL of the topic so I can use it as an example. Thanks!
HUD Drawing - Now includes several scripts for drawing sprites and shapes that don't resize. Not available for unregistered users!
View Area - You can set define the area the view must stay in (can be used to keep view inside the room.)
Activating Objects in Example - In the example you can press 1, 2, 3, and 4 to activate/deactivate characters from the view.
GM6 Bug Fixes - I fixed a bunch of bugs in the gm6 version.
Offscreen Arrow Distance - You can now set the distance from the edge of the screen that the character must be before drawing the arrow.
No Arrow Object - draw_offscreen no longer creates objects.
Eaiser Scripts - Now only requires parent's name instead of objects name.
Activating Objects - You can now set whether or not a character effects the view.
Much Faster - Now almost twice as fast as before!
Arrow Fix - If two characters are off the screen on the same side it still draws the arrow correctly
Room Limits - Now the camera will not go outside the room boarders.
Off Screen Characters - Shows an arrow with the character's sprite when it is off screen.
Smooth Movement for New Objects - The camera will move and expand to fit objects that are created outside the view instead of just instantly shifting that way.
Max View Size - The view will not expand to infinity, it will now only expand however large you want the max to be.
Off Screen Characters - When an object does go off the screen, it will show the circle and arrow sign (like in ssb) and show the object inside the circle.
Automatic Information - Under the "find_info" script, you no longer have to add anything too it. It will now automatically find information based on the number of objects there are. (You don't have to add "other.charX.x" to the end for each character.)
Q. How can I make the view stop tracking the an object after ______.
A. With the recent update this can now be easily done using the get_fallowing and set_fallowing scripts. You can use get_fallowing to check if the view tracks it and set view to set whether the view tracks it or not.
Q. Why are the things I draw with the HUD scripts so flashy?
A. This is because it is because my method of doing it includes decimal places in the drawing locations and, as you know, you cant draw a sprite at 12.467, it is rounded to 12. It is this rounding that causes it to flash. If anyone has a better way of doing it please tell me!
Q. How do I keep the objects a certain distance form the edge of the view?
A. In the create event of "camera" you can change the variables "xoffset" and "yoffset" to set the distance from the edge.
Q. Why does my character go completely of the screen to the right and bottom before resizing, but it resizes to the left and top immediately when it touches the edge?
A. This happens when you have the sprite origin at the default top-left point. The system uses the sprite origin to determine when to start resizing. For the best results have it centered and have the xoffset and yoffset variables to be half the sprite's width and height
If you would like me to make a specific example PM me.
GIVE CREDIT: Made by: Michael Moore
Edited by icuurd12b42, 12 August 2011 - 06:23 AM.