User Tag List

Results 1 to 9 of 9

Thread: Drawing a closed shape affects enemies inside it (html5)

  1. #1
    Clicker Fusion 2.5Fusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    blurymind's Avatar
    Join Date
    Feb 2014
    Location
    Huddersfield, United Kingdom
    Posts
    497
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    Drawing a closed shape affects enemies inside it (html5)

    Is it possible to code logic where the player's movement on the screen (4 directions) can leave a trail. When that trail closes in shape, it creates a closed shape that kills enemies inside it.

    For lack of better example, heres a naughty (work safe) game for MAME cabinets that executes that mechanic:
    (Snail removed this link)

    Imagine this, but on a 2d canvas and without the naughty stuff

    Can it be done? How

  2. #2
    Clicker Fusion 2.5Fusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    blurymind's Avatar
    Join Date
    Feb 2014
    Location
    Huddersfield, United Kingdom
    Posts
    497
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    I am way over my head with this

  3. #3
    Clicker Fusion 2.5Fusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    blurymind's Avatar
    Join Date
    Feb 2014
    Location
    Huddersfield, United Kingdom
    Posts
    497
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    It is certainly a challenge. I dont think that anyone has ever done it before in fusion

    I am quite curious of how it can be done. Btw sorry I couldnt provide a less sleazy example. The name of the game is "Dancing eyes" btw. if anyone knows of similar mechanic in another game, please drop a message

  4. #4
    Clicker Fusion 2.5Fusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    blurymind's Avatar
    Join Date
    Feb 2014
    Location
    Huddersfield, United Kingdom
    Posts
    497
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    its not going to always be a square. How do you draw the shape once you have the points figured out?
    any example files ?

    Its really hard to imagine how it would work by just looking at formulas.

  5. #5
    Clicker Fusion 2.5Fusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    blurymind's Avatar
    Join Date
    Feb 2014
    Location
    Huddersfield, United Kingdom
    Posts
    497
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Any tutorials on using the surface object? I cant seem to find any

  6. #6
    Clicker Fusion 2.5Fusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    blurymind's Avatar
    Join Date
    Feb 2014
    Location
    Huddersfield, United Kingdom
    Posts
    497
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Ok nevermind, I figured out how to draw the polygons with the Surface object. The real issue is that the game will only work on windows

    Are there any hopes of having the Surface object ported over to Android?

  7. #7
    Clicker Fusion 2.5Fusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    blurymind's Avatar
    Join Date
    Feb 2014
    Location
    Huddersfield, United Kingdom
    Posts
    497
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    ok the surface object is too memory intensive and my polygon shape gets cut off by the boundaries of the canvas.

    This is not going to be useable.

    Can I set the polygon points and then create a polygon out of them with the automatic canvas size?

    Is there really no way to do it without the surface object?
    Damn I wish mmf had something similar to this:

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I were to do it, I'd go with the suggestion of using active objects.

    You'd have to record the movement to determine all the sides of the shape. The hard part would then be to figure out how to split the shape into different rectangles. Once you have, you need to create a tiny pixel-object to draw each rectangle. Use a loop to create and scale all the pixel-objects to the rectangle size and then check if they overlap any enemies.

  9. #9
    Clicker Fusion 2.5Fusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    blurymind's Avatar
    Join Date
    Feb 2014
    Location
    Huddersfield, United Kingdom
    Posts
    497
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    That is an interesting proposition. Create the shape out of triangles. Still not sure how to do it- getting the three vertices at the correct positions just by scaling the triangle and rotating it

Similar Threads

  1. Replies: 2
    Last Post: 25th February 2014, 10:18 AM
  2. Events for the same object but that affects just one
    By renan63 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 25th June 2013, 01:39 AM
  3. Any tips on good line/shape-drawing extensions?
    By Yikes in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th October 2011, 12:16 PM
  4. Deleting empty layer affects collision
    By RayMarble in forum File Archive
    Replies: 0
    Last Post: 24th October 2010, 01:46 PM
  5. [Suggestion] Extra shape for Window Shape object
    By LIJI in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th March 2007, 06:32 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
  •