User Tag List

Results 1 to 7 of 7

Thread: Make characters go in circles

  1. #1
    No Products Registered

    Join Date
    Dec 2015
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Make characters go in circles

    Hi, I want to make my enemy characters (basically squares) go round in circles constantly. I have four of them in like a circle shape of their own. I want my character to have to dodge in between them. When i put them all on the circular movement only one of them is visible. I think this may be because for some reason they are all underneath each other. Any ideas on how to fix this or do something completely different would be greatly appreciated!

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Dec 2015
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi there!, Have you tried using path movement to make it go in a circle? This is what I used to make one of my enemies move in circles as well a while back in one of my games, Maybe if you use the path movement, draw the points in a circle and loop it- it may do what you want it to do.

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    If you are using circular movement, you need to also use the Clickteam Movement Controller extension. With that extension, you can set the starting angle of each of your enemies to be different. This should stop them from overlapping.

    But it would be better if you use sin/cos and some math to make them move in circles. There is a great tutorial here: http://community.clickteam.com/threads/60440-Tutorial-Trigonometry-In-Gaming. Once you get the hang of using sin and cos, you can do all kinds of great things.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    You can go as Nightsky said (but unless you're Giotto, you may have hard times taping a perfect circle with the mouse )

    if you want to use the circular movement as you already tried, make sure all enemies are different instances (cloned, not duplicated)
    and change their "starting angle" accordingly, to make one start at different angle from the other, otherwise they'll end up moving as one as you noticed

    otherwise you can use some trigonomery for full control, if you need an exampe drop a line!


    EDIT_

    If you are using circular movement, you need to also use the Clickteam Movement Controller extension. With that extension, you can set the starting angle of each of your enemies to be different. This should stop them from overlapping.
    Wooooh moment for me - I never used this object before -- cool to know! thx mobichan

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    Schrodinger: it is surprising to hear you say that, but unless you have done your best to avoid built-in movements (like I have done recently), the CMC is basically a must have extension.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    yeah, in fact I don't think I'll be using this object,
    but the "woooooh" comes out because I sometimes asked myself why some of builtin movements were not customizable in real time
    now I have the answer: they are and in almost all runtimes

    guess this object lived its deserved glory in times I was far from the click world,
    when custom movements could have been less widespread (I guess)
    this may explain why I never stepped into it before...

    edit__
    now, this also explains why there's written "clickteam movement controller - name of the extension used to control this movement"
    as last line in any extension movement
    never used those much beside quick test / examples
    nevertheless I must have been blind
    this clearly makes them much more useful...
    particularly vector, pinball, spaceship...
    anything that would not be customly doable - but hey, this is cool

    edit2__
    cancel pinball - can't be controlled

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To make Objects/ Object Instances have a circular movement:

    ...
    - Create an Object ( and multiple instances of the same Object if you wish )
    - Give the Object 4 AltValues: 'Angle_', 'Radius_', OriginX_, OriginY_ ( remember to set Radius_ to something to get results at all )

    ...
    The create theese 2 Events:

    + Start Of Frame
    -> Set OriginX_ to Object Xpos
    -> Set OriginY_ to Object Ypos

    + Allways
    -> Add 1 to Angle_
    -> Object set Xpos to 'OriginX_ + Cos( Angle_ ) * Radius_'
    -> Object set Ypos to 'OriginY_ - Sin( Angle_ ) * Radius_'

    ^ This should work and be very flexible

    ...
    I realize if not familiar with Sin()/ Cos() or AltValues thismight be more confusing than helpfull.
    Ask if your wondering about something, and i or someone will be able to answer your quesionmarks.

Similar Threads

  1. How to make shadow for characters.
    By Speed in forum Fusion 2.5
    Replies: 12
    Last Post: 2nd July 2015, 05:04 AM
  2. Drawing intersecting circles
    By SolarB in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 9th July 2012, 12:05 PM
  3. Filling drawn circles
    By Apex in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 26th June 2012, 01:15 PM
  4. Help!! how do i make my characters move??
    By Jap in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 25th November 2009, 01:35 AM
  5. help! how do i make my characters move?
    By Jap in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 24th November 2009, 11:19 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
  •