Results 1 to 2 of 2

Thread: change movement type issue (how to catch leaving object event)

  1. #1
    No Products Registered

    Join Date
    Apr 2017
    Posts
    16

    change movement type issue (how to catch leaving object event)

    Hi,

    I made simple platform with ladders.
    Movement type is generally Physics - platform.

    On player overlapping ladder movement type is changing to 8 directions - it works fine.

    If player not overlapping ladder movement type is changing back to platform style but...
    This line causes that player object can not run.

    I tried 2 way:
    a) change physics platform to basic platform - player object was able to run but gravity doesn't work
    b) add button press to change movement from 8 dir to platform - works fine
    but if I want to change movement on every button pressed player object runs very very slow and make random movements

    So the problem is due to infinite continuous changing movement type.

    Do you know way to do something when object leave other object?

    Note:
    Ladder must be active object, because user can place ladders

  2. #2
    give your player a value called "ladder" or something similar.

    then use these two events:

    ladder value = 0
    +player is overlapping ladder
    --> set ladder value to 1
    --> change movement to 8 dir

    ladder value = 1
    +player is NOT overlapping ladder
    --> set ladder value to 0
    --> change movement to platform


    that should only switch movements once when you leave and enter a ladder.
    Best person at writing incomprehensible posts. Edits are a regularity.

Similar Threads

  1. Replies: 6
    Last Post: 9th October 2016, 05:15 PM
  2. Replies: 4
    Last Post: 11th December 2015, 12:26 AM
  3. Newbie Issue (catch the fruit tutorial)
    By JC_LEON in forum Multimedia Fusion 2 - Technical Support
    Replies: 30
    Last Post: 12th November 2013, 10:31 AM
  4. Replies: 2
    Last Post: 9th October 2013, 05:26 AM
  5. Change font type in string object.
    By Pedro Almeida in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 10th February 2012, 06:48 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
  •