User Tag List

Results 1 to 2 of 2

Thread: Diagonal walking on special zone

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleXNA Export ModuleFirefly 3D Module
    MEHRDAD's Avatar
    Join Date
    Jan 2009
    Location
    Iran
    Posts
    489
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Diagonal walking on special zone

    Hi

    I have a character with 32X32 pixel and moving is with mouse point and click.I haven't problem with left,right,up and down.But for diagonal move i can't write exactly code for a special zone.

    code for Up-right:
    X"Character" < X"destination mouse"
    Y"Character" > Y"destination mouse"

    But i want when player click on a special zone , character move diagonal to Up-right.This is special zone:
    Please draw a diagonal line (for instance 45 degree ) from character head to Up- right and draw another diagonal line from bottom character to up-right.my zone is between this two lines.how can i optimize codes or any formula?
    Appreciate for any help

    Edit : As my character is 32X32 i think two lines are Y = X + 16 and Y = X - 16

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleXNA Export ModuleFirefly 3D Module
    MEHRDAD's Avatar
    Join Date
    Jan 2009
    Location
    Iran
    Posts
    489
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok.Problem solved.please delete this thread.
    Thanks anyway

Similar Threads

  1. Diagonal d-pad (POW)
    By willy in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 21st December 2018, 03:51 AM
  2. PMO and diagonal slopes
    By WhatPixelYouOn in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 26th March 2014, 07:08 PM
  3. enemy walking on diagonal floors
    By sgn15 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 17th February 2014, 12:26 PM
  4. Sonic special zone orb problem
    By Appo in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th July 2011, 01:55 PM
  5. Walking sound only when walking
    By delta9857 in forum The Games Factory 2 - Technical Support
    Replies: 7
    Last Post: 26th November 2010, 01:47 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
  •