User Tag List

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

Thread: How to get the movement of the Space Pilot spacecraft?

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export ModuleUnicode Add-on
    daryuss's Avatar
    Join Date
    Apr 2012
    Location
    Italy
    Posts
    264
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How to get the movement of the Space Pilot spacecraft?

    Hi.
    I tried to do the eight-way "rotary" motion to get the same motion as the space pilot spacecraft:
    https://www.retrogames.cc/arcade-games/space-pilot.html
    I almost succeeded, but I can't get it to stop by pressing the diagonal, in the eight retention corners.
    Download the example here.
    Generally degrees are used, but using a counter with the maximum value set at 32 "directions", the 8 reference directions are: 0-4-8-12-16-20-24-28. You should try using the Flags on/off method. Anyone know if there is a similar example to download?
    It would also be useful for top view driving games, because the "Race car" movement is too difficult.

  2. #2
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jan 2018
    Posts
    429
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    like that ?startpilot.mfa

  3. #3
    Clicker Fusion 2.5 DeveloperiOS Export ModuleUnicode Add-on
    daryuss's Avatar
    Join Date
    Apr 2012
    Location
    Italy
    Posts
    264
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    WOW. You are great, but really great. 100000 thanks!

  4. #4
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jan 2018
    Posts
    429
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    startpilot.mfa

    this version is better with 90 degree and 180 degree

  5. #5
    Clicker Fusion 2.5 DeveloperiOS Export ModuleUnicode Add-on
    daryuss's Avatar
    Join Date
    Apr 2012
    Location
    Italy
    Posts
    264
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    @Fredetmumu: Thanks again. Honestly, I wouldn't have gotten there! This will be very useful to me.. (I sent you a p.m.)

  6. #6
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,446
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    That seems a little buggy - rotation towards a diagonal (NE, SE, SW, NW) is twice as quick as rotating towards one of the four cardinal directions (N, E, S, W), and it's also possible to hold an angle other than the main 8 directions. It's also quite complicated.

    A useful trick I've found, is to have an invisible, stationary object with an 8-direction movement, and just use that to get the direction the player's direction input - it's so much easier than having loads of similar events checking for different combinations of arrow keys being pressed, and often if the player is holding down several at the same time, you'd want to know which they pressed last, etc.

    https://1drv.ms/u/s!Atq7cUIJ7uexsUxT...tG8X3?e=3ONKMT

  7. #7
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Patrice's Avatar
    Join Date
    Sep 2010
    Posts
    605
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Physic movement can do it without any event.
    Attached files Attached files

  8. #8
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jan 2018
    Posts
    429
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    Patrice : zero lignes !

  9. #9
    Clicker Fusion 2.5 DeveloperiOS Export ModuleUnicode Add-on
    daryuss's Avatar
    Join Date
    Apr 2012
    Location
    Italy
    Posts
    264
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    @MuddyMole, Patrice: Many thanks, you have been genius. Now I have to study the method to stop the rotation, once reached, of the angles 45, 135, 255, 315 (in practice, the 4 diagonals) when you leave the keys (or the joystick). Angles 0, 90, 180, 270 are now ok. Thanks again.

  10. #10
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jan 2018
    Posts
    429
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    i just try space pilot and it seems that when you release keys, rotation stop at the actual angle and not at the next diagonal

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 27th October 2015, 03:49 PM
  2. Stunt Pilot or Top Dog airplane game movement
    By PeterB in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 3rd June 2011, 05:26 PM
  3. Space invaders movement
    By Robin_Manager in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th August 2008, 03:08 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
  •