User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Camera like Pocky and rocky 2 with no extensions

  1. #1
    No Products Registered

    Join Date
    May 2016
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Camera like Pocky and rocky 2 with no extensions

    Hi everyone hope all is well.

    I want to create a camera like Pocky and rocky 2 where the room is big and the camera cuts off the player X and y display, when they reach a certain point. i'm making a top down shooter game and want to re-create this type of camera in fusion. here's the link to watch the game : https://www.youtube.com/watch?v=JhiqZU0o_wk .I hope i don't have to use extension as its an Android game i'm making.


    Thank you

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,303
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Working on making you an example.

    Or maybe it's more of a small game which just happens to also have the code you are looking for.

    I think I'm going a bit overboard... But ya know what? Why just make an example, when I can also demonstrate just how the example's main code can be put into good use while I'm at it?

  3. #3
    No Products Registered

    Join Date
    Jul 2015
    Location
    MI, USA
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I made a quick example for ya
    Hope it will help a bit.

    Movement Example.mfa

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,303
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Heh, looks like somebody beat me to it. And right as I finished my example as well!

    Well, I'll upload mine as well, just because it's done, so no sense in not uploading it.

    (Though it seems we both had slightly different ideas on what the person who posted the thread wanted, so who knows? Maybe they'll get use out of both of them.)

    Oh, and FYI: I didn't get around to implementing the proper attack for the enemies. Oh well... not like an example should really need to do something like this.
    Attached files Attached files

  5. #5
    No Products Registered

    Join Date
    May 2016
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you both of you now i just need to find out how to make it so the player can take two paths with this camera like in the video at 2.06 mins

  6. #6
    No Products Registered

    Join Date
    May 2016
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you i like how you made the gates that block you off how can i make the room big like pocky and rocky 2 where the camera blocks you of and you can choose your path?

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,303
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Notice how I coded the camera to only lock the horizontal camera position? You could probably design your game to use separate horizontal and vertical camera locking. For example, you could use three different kinds of camera locking objects: Horizontal+vertical, horizontal only, and vertical only. Maybe a few extra kinds of locks if you don't want the player to backtrack: One that prevents the camera from going farther left than it, one that prevent the camera from going farther up than it, one that prevents the camera from going farther right than it, and one that prevents the camera from going farther down than it. And you could potentially code it so that you can activate more than one lock at once, though I have no idea if that's really particularly necessary.

  8. #8
    No Products Registered

    Join Date
    May 2016
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have made example of the type of camera i want but i'm stuck on blocking the camera off here the example: https://www.dropbox.com/s/qx81fa3sae...ample.mfa?dl=0

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,303
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    FYI, the camera direction changing zones are FAR too small, and they probably should use active objects instead of the "detect objects in zone" feature, since active objects give you more customization options (I tried fixing it somewhat in the example, but it did introduce a few new bugs, so if you still see a bit of white due to the camera locking in a SLIGHTLY incorrect position, well, that's why). For an example of the sort of advantage you can get by using actives instead, there's the segment in my example where the locked camera moves back and forth rather than staying stationary, which couldn't possibly be done with fixed points. Quite frankly, the IDEAL fix for this would use active objects for this, but to make it easier to add to your existing example, I'm just going to leave all that as-is for now (though I seriously recommend you do that).

    I've attached a very basic fix for the example you posted, but that being said I would much rather make a better version of my old example which has proper camera locking in all directions AND which keeps the camera from moving back beyond certain points, since I feel it could better demonstrate a somewhat more "clean" solution.
    Attached files Attached files

  10. #10
    No Products Registered

    Join Date
    May 2016
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for your help i will use your old example and add this code to the mfa file thank you happygreenfrog.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Camera like Pocky and rocky 2 with no extensions
    By nat in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th July 2016, 08:45 PM
  2. Replies: 3
    Last Post: 1st July 2015, 04:46 AM
  3. IP Camera and Web Camera Extension for MMF2
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 2nd June 2010, 05:37 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •