User Tag List

Results 1 to 9 of 9

Thread: make death spikes not an object

  1. #1
    No Products Registered

    Join Date
    Dec 2007
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    make death spikes not an object

    okay well my game will run quite a few objects per frame so I was wondering if there was a way to make objects such as deathspikes (you touch them, you did die) and animated backdrops not objects to save on lag in the game

  2. #2
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make death spikes not an object

    Sorry but that can't be done, an extension can be made to do exactly that.

  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make death spikes not an object

    It can be done.
    One way would be to place the spikes in their own layer as obstacles, and add a detector in that layer that follows the player. Then just check if the detector overlaps an obstacle.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make death spikes not an object

    That's very clever, actually! I would have suggested the Overlay object to define damaging areas (not that I've ever used it), but that would certainly work.

  5. #5
    Clicker Multimedia Fusion 2iOS Export ModuleXNA Export Module
    Asholay's Avatar
    Join Date
    Nov 2008
    Location
    England
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make death spikes not an object

    Or, and with far more ease, you could just detect whether a player is in the zone of the spikes?

    Only one line of code, and you keep your backdrop.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make death spikes not an object

    Asholay's solution works nicely, but gets really messy very quickly when you have lots of spike zones. Werbad's solution is really clever!

  7. #7
    Clicker Multimedia Fusion 2iOS Export ModuleXNA Export Module
    Asholay's Avatar
    Join Date
    Nov 2008
    Location
    England
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make death spikes not an object

    AFAIK layers appear to be quite resource-hungry though, and the key point of Winston's post was to reduce slow-down in the game.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make death spikes not an object

    It's the graphical stuff that is resource hungry, but if that layer is hidden, and quick backdrops are used as dangerous zones, the slowdown is so small it won't be noticed (the spikes themselves has to be put in the main layer of course).

    The nice thing with this is that you can just show/hide that layer in the frame editor when dangerous zones needs to be edited or not, and you get an overview that zone events can never provide.

  9. #9
    Clicker Multimedia Fusion 2iOS Export ModuleXNA Export Module
    Asholay's Avatar
    Join Date
    Nov 2008
    Location
    England
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make death spikes not an object

    Yeah, I've been finding the layers quite fruity myself actually - they're a welcome addition over TGF.

Similar Threads

  1. Death Goat
    By Jeff in forum Xbox Play testing & Peer Review
    Replies: 9
    Last Post: 28th March 2013, 03:37 PM
  2. Enemy Death Bug?
    By FlinkGigitty in forum File Archive
    Replies: 1
    Last Post: 22nd January 2010, 11:23 PM
  3. Death Effect
    By FlinkGigitty in forum File Archive
    Replies: 2
    Last Post: 20th January 2010, 09:50 PM
  4. The Death Clock
    By Game_Master in forum File Archive
    Replies: 25
    Last Post: 21st January 2008, 09:41 PM

Posting Permissions

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