Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Vanyfraise

Pages: [1]
Playmaker Help / [SOLVED]Follow player position (with array)
« on: May 24, 2018, 08:00:10 AM »
    Hi guys,

    I want to do this in my shmup :

Pods are moving to the last player position saved.

To find a way do this and with 600 help on the discord, i tried this solution. On the player gameobject :
  • State 1 : Check player axis  (if vector3 = 0 , then player is not moving)
  • State 2 : wait 0.16 second
  • State 3 : Add Player's transform.position vector 3 in an array list.

Then, on the first pod :
  • State 1 : Check if is moving (again, i know).
  • State 2 : Get the next array of the player transform position vector 3 array and set a vector3 with his values.
  • State 3 : Move pod to this new vector3 (i'll change the move toward with an iTween Move To later).

For now, the pod is moving all along the list of elements in the array (which is infinite for now) and loop...

How can I delete an element after using it ?
Of course if you have any ideas to do this linear following tricks w/o array, i'd loved to read it.

Thanks ![/list]

Playmaker Help / How to get a 360° angle between two vector3[SOLVED]
« on: February 13, 2018, 07:03:07 AM »
With a the "Vector3 Operator" I've got a 180° angle.
It cause in my project fliping angle bug.

I guess I'll could find a way to solve it if I got a 360° angle, right now I work with two 180° angle that I select with the help of playerPosition vector3 (Player is it at the left or the right of the object then do this action etc.).

Hi guys,
I'm trying to dev "this" exact feature :
I want to translate the camera on the x axis depending on the player position and blocked at -x & +x.

Like that :

I tried a lot of things, but i'm at a dead end. Any idea ?

Playmaker Help / [SOLVED] How to find multiples objects.
« on: December 13, 2017, 04:00:31 AM »
Hi guys,

I'm searching for a non-developper friendly way to find multiples objects with tag or something else in my scene. I want to build a cancel bullet feature in my shmup. To do this, i have to find all existing bullets in screen and then deactivate them or thing like that.

Do I have to put all created bullet in an array or something like that ?

As Leeloo said, "Please help".

Playmaker Help / Fire and alt fire [SOLVED]
« on: November 13, 2017, 03:45:48 AM »
Hi guys,

I want to make this danmaku shooting system :

  • if player press fire then create bullet1,
  • if player held button x seconds then create bullet2 all long player held down fire button (alternate fire).

For now, i'm trying this :
- Idle is waiting for "Get Button Down", it stores the result in the bool fireIsPressed.
- IsFiringOnce, take position of owner, create the bullet,
- FireBoolTest is waiting for x secondes and is testing the bool :
   - if true (means player's still pressing "fire1" button), it goes to HOLDFIRE event.
   - if false (means player's not pressing anymore "fire1" button), it return to Idle Start state.

Of course, it's not working, i don't know why but the bool does not set to false when the fire button is release.

I try to make a "shootmanager" in another gameobject in the scene, it set correctly the bool but no result when i test the condition (it do not send to the STOPFIRE event, even if the bool is false).

Do i try with the wrong "get..." action or something else ?

Playmaker Help / Idle x frames then do something !
« on: February 20, 2017, 01:35:06 AM »
Hi, I'm a brand new playmaker noob from France trying to make a game without c# or others code knowledge, i'm in teamdesign...

So, I want to make something happened when nothing is pressed (play animation, add int+1 etc.).
With my script, it's working, except if i press two buttons and release one after the other. Because script understand that i'm releasing a button so it's doing his job.
I guess i have to make a kind of conditionnal or something like that.

Have you got an idea ?

Thanks !

Pages: [1]