playMaker

Author Topic: [Solved]impossible to move the player  (Read 818 times)

stigma

  • Full Member
  • ***
  • Posts: 177
[Solved]impossible to move the player
« on: August 08, 2023, 05:20:32 AM »
Hi,
I'm using actions that work well to modify objects, but cannot move the Player to a given position. The action is validated but the player does not move.
« Last Edit: August 17, 2023, 02:12:47 AM by stigma »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: impossible to move the player
« Reply #1 on: August 08, 2023, 06:49:12 AM »
Hi.
Maybe space need to be set to world.

Maybe you have some character movement interfering (try disabling that)

stigma

  • Full Member
  • ***
  • Posts: 177
Re: impossible to move the player
« Reply #2 on: August 08, 2023, 08:17:55 AM »
self or world does not change anything

yet I can move it with a Get Key Down. But I want to act with a mouse click on an object

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: impossible to move the player
« Reply #3 on: August 08, 2023, 11:50:04 AM »
On the last image, you use 'Use Owner'
The other one you are targeting an object (character controller)

if that character controller is used with a Contoller (Simple) Move action.
you might need to disable that while moving the character.
as far as i know the character controller uses translate, which might prevent you to move the object.

stigma

  • Full Member
  • ***
  • Posts: 177
Re: impossible to move the player
« Reply #4 on: August 13, 2023, 10:16:51 AM »
I tried using a global variable but I still don't know how to move my player when it clicks on another object  :-\

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: impossible to move the player
« Reply #5 on: August 14, 2023, 01:41:48 AM »
hi, do you mean like a teleport or you want the player be click to move?

stigma

  • Full Member
  • ***
  • Posts: 177
Re: impossible to move the player
« Reply #6 on: August 14, 2023, 02:21:31 AM »
Yes that's it. Example. The player clicks on an object to be teleported elsewhere.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: impossible to move the player
« Reply #7 on: August 14, 2023, 06:43:12 AM »
hi.
on the 2nd image the action is set to use owner.
on the first its targeting a first person controller object.

If you did not set your own controller movement and you are using a character controller you probably need to disable the component and then set the position, then enable the controller again

stigma

  • Full Member
  • ***
  • Posts: 177
Re: impossible to move the player
« Reply #8 on: August 14, 2023, 07:34:01 AM »
the second image was just to show how I was doing before. It should not be taken into account.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: impossible to move the player
« Reply #9 on: August 14, 2023, 08:08:45 AM »
but you are using a character controller?

stigma

  • Full Member
  • ***
  • Posts: 177
Re: impossible to move the player
« Reply #10 on: August 15, 2023, 10:05:16 AM »
yes, an ordinary character
I just want to teleport him when he clicks on a GameObject

Edit:
I succeeded by using an intermediate variable.
« Last Edit: August 15, 2023, 10:14:33 AM by stigma »