User Tag List

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

Thread: help with object going into different directions

  1. #1
    Clicker Fusion 2.5 Developer
    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)

    Join Date
    Mar 2018
    Posts
    270
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    help with object going into different directions

    how to do i make it where if the player presses on the left button the green cube goes up but slightly to the left, and if they press the right button it does the same thing but it goes slightly to the right instead? i already got it to jump i just dont know how to make it go into different directions. like in flappy bird when you tap the screen to fly. in my project in trying to do the same but you can go either direction. thanks! Attachment 29380

    also, i did try doing it but when you click on the left button its all jerky and it doesnt even work when you press the right button. Attachment 29381

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Hi.
    Upon Clicking the Left Button
    Player: Set X Position to -2 Set Y Position -1

    Upon Clicking the Right Button
    Player: Set X Position to +2 Set Y Position +1

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker Fusion 2.5 Developer
    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)

    Join Date
    Mar 2018
    Posts
    270
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    @nivram i just put it in and it kinda got crazy, im not sure if i was supposed to delete the other codes that were in the line but this is how i put it:Attachment 29382

    heres a video showing what happened, when i press the left button it spazzes out, and when i press the right button it doesnt do anything: https://www.youtube.com/watch?v=w4I-...ature=youtu.be

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    I think this is what you're trying to achieve - attached.

    I changed the directions to a visual - you can change it there to be go in a direction that is halfway between up and left - i.e. 12 - but if you want it to just go slightly up you can change that direction to anything from 15 - 12 and the same thing for the right side - there the direction is set to 4 - but it can be anything from 1 - 4 depending on how far up it must go.
    Attached files Attached files

  5. #5
    Clicker Fusion 2.5 Developer
    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)

    Join Date
    Mar 2018
    Posts
    270
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    @Janette5 it works but only if i press the left button, it doesnt respond with the right one.

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    Nah it does - but you had said the person must left click on the "left button" and right click on the "right button" and I left it like that.

  7. #7
    Clicker Fusion 2.5 Developer
    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)

    Join Date
    Mar 2018
    Posts
    270
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    @Janette5 oohhhhhh, omg im so dumb lol i just realized that. ok im sorry idk why i made it where the person right clicks lol. quick question - is there a way to make the cube fall immediately when the player isnt pressing on either button? it takes a second or two for it to actually start falling

    heres the fixed up version: Attachment 29385

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    I've set an alterable value to 10 and it will countdown and when it reaches 0 or below the green block will fall.

    The value 10: if you reduce it, i.e. make it smaller than 10, then the delay, before the green block falls, will be quicker.
    If you increase it, then the delay, before the green block falls, will be slower.
    Attached files Attached files

  9. #9
    Clicker Fusion 2.5 Developer
    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)

    Join Date
    Mar 2018
    Posts
    270
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    @Janette5 oh ok, i also figured out that can make it fall without having to use alterable values by making the speed less than 15. theres still a small delay though, but im trying to make the game fluid and make it act as realistic as possible with the cube movements. kinda like in that faulty flap tutorial (i know it isnt exactly realistic but is something im trying the replicate) and instead of having the cube move only up and down it can move to the left or right by pressing the buttons but act exactly like it does in faulty. mine feels too clunky and idk if i need to use the physics bouncy ball engine or not. heres the other way i got it falling: Attachment 29387

  10. #10
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    The physics will mostly affect collisions and if you don't have that - it's not going to make much difference.

    You can make the downward speed kick in quicker and move faster by playing around with the settings on line 11, for example, this:

    * Speed of green_cube < 50
    green_cube : Set speed to 50
    green_cube : Set deceleration to 0
    green_cube : Set direction to 24

    Also with the object's properties where you set up the bouncing ball movement - set your speed to 100 and your number of angles to 32.


    Your other option is to run loops to move the object instead of using any of the built-in movements. If the user presses on the button - run a loop to move the cube up maybe 3x times and once left and when the user is not pressing on a button - always move it down. This will give you a very predictable result i.e. the object will always move at an exactly constant speed with no speed up or slow down.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Object auto move multiple directions
    By MutleyNZ in forum Fusion 2.5
    Replies: 10
    Last Post: 25th June 2016, 02:13 AM
  2. Launch object in all directions?
    By Circus_Potato in forum Fusion 2.5
    Replies: 4
    Last Post: 7th January 2016, 02:59 AM
  3. [Request] Bouncing ball Object with 360 directions
    By Tiles in forum Extension Development
    Replies: 10
    Last Post: 6th January 2012, 03:26 PM
  4. Advanced Dir Object - Limiting to 8 directions
    By Kid_Roleplay in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 31st December 2009, 07:41 AM
  5. Object Grouping re:360 Directions
    By JJames19119 in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 26th June 2007, 09:59 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
  •