User Tag List

Results 1 to 5 of 5

Thread: Object travelling towards screen

  1. #1
    No Products Registered

    Join Date
    Feb 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Object travelling towards screen

    In a firstperson 3D game was is the best way to have an object fly towards you. I have done it using different active images(the image gets larger as it approaches) and a timer, but I am guessing there is a more elegant way.

  2. #2
    Clicker iOS Export Module

    Join Date
    Feb 2010
    Location
    Behind the tree!
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If i recall theres an extension called something like active 3d object, or 3d sprite object or something which can scale sprite based on depth. Theres also the raycaster extension, but i don't think mmf2 is really any good for 3d games, being a 2d game maker.

  3. #3
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Why is nobody taking advantage of LUA and the OpenGL extensions available? It is more than capable of rendering scenes, objects and textures needed for a first person shooter... however, the amount of code would be immense to say the least!
    Want to learn Clickteam Fusion 2.5?




  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Precisely - the amount and complexity of code required, would totally defeat the purpose of using a tool like MMF2.
    There are other, far more powerful 3D engines, that can be scripted using Lua or something similar.
    Trying to do 3D in MMF2 just makes no sense at all.

  5. #5
    Clicker Multimedia Fusion 2 Developer
    gastrop0d's Avatar
    Join Date
    Dec 2011
    Location
    Australia
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can store a set of 3D coordinates for the object in alterable values, then do something as simple as:

    Start of Frame:
    Set 3Dx(Object) to X(Object)
    Set 3Dy(Object) to Y(Object)
    Set 3Dz(Object) to <something greater than 0> -- the lower Z is, the closer it is to the viewer

    Always:
    Set X(Object) to 3Dx/3Dz
    Set Y(Object) to 3Dy/3Dz
    Set Width(Object) to Original Width(Object)/3Dz
    Set Height(Object) to Original Height(Object)/3Dz

    That's a basic starting point for a very simple 3D effect. It doesn't really give you proper perspective but it might be enough for what you want to do.

    EDIT: Sorry, I reread your OP and if you want to render a full 3D space, you definitely want to go with something like OpenGL + 3D Sprites, or maybe RayCast. But yes, as MuddyMole said, if you want a very complex 3D game (particularly with 3D state space and 3D collisions) you're better off picking a more powerful 3D engine. There's tonnes out there.

    @MuddyMole: I feel that's too extreme of a position to take. The viability of 3D applications in MMF2 is relative to the complexity of the problem. Something like a full-blown modern 3D shooter, yes that would be ridiculous to do in MMF2. But I think drawing 3D projections of 2D game space is great to do in MMF2. You leverage the ease of use MMF2 has over 2D spaces while only needing to dip your toes into the 3D side to get the visual that you want.

Similar Threads

  1. List object and Dropdown object bug in Full Screen mode
    By MTCMusic in forum Hardware Accelerated Runtime
    Replies: 2
    Last Post: 26th July 2013, 01:22 PM
  2. Travelling Up and Down Walls, Ceilings, Corners, Etc
    By stevenart1988 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 3rd April 2013, 12:57 AM
  3. Get an object that off the screen bug
    By Dave78 in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 17th May 2012, 02:08 PM
  4. screen capture object -> picture object
    By Hamcraft in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 14th September 2009, 12:17 AM

Posting Permissions

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