playMaker

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 - NN2

Pages: [1]
1
Playmaker Help / Change Enemy sprites depend of the directions
« on: October 22, 2017, 05:06:02 AM »
So I've tried to move enemies and characters to some points by using itween move to and it perfectly worked.
However, I cannot change their sprites depend on where they go since they don't use axis..

I want to make them to automatically change their sprite like: if the object is moving left, the sprite of it changes to the one with faced left.

I've searched this question a lot but couldn't get the right answer :(
Could you help me solve this question?

+I use blendtree for the animation but maybe it's not a good idea. (it worked for player because it uses axis..)

Bye!

2
Playmaker Help / Make guards have light censor
« on: October 10, 2017, 12:35:47 PM »
Hello, I am very new in script and want to make this function works by playmaker.

https://www.youtube.com/watch?v=rQG9aUWarwE

This video is something about field of view and I don't understand how it works since everything is in script :( Could you help me to make this function with playmaker? Or is it impossible to do it?

What I want to do is to make the guards have lights in front of them (like they holding torches) and they detect the player when it's inside of the torch light.

I am stuck here for quite long time so I really hope you could help me out.
Thank you for reading!

3
Playmaker Help / easysave2 error
« on: January 26, 2017, 02:19:49 AM »
Hi, I'm trying to use easysave2 but it keep showing me these errors.
can anyone solve this problem?

4
iOS Help / Touch and Drag the Object on Device
« on: October 12, 2016, 09:53:56 AM »
Hi,
I search about this issue for a long time but haven't found the clear answer yet.
I looked all official and user tutorials but still cannot find the clue.

What I did was following very last bit of the tutorial below (21:05 ~ 22:44) and made my object to move exactly like what it is on the video.
But from this point, what I want to do is to make the object moves depends on the amount of dragging, not tracking my finger.
How can I move the object with touching anywhere on screen and drag? I do not want the object to be hidden by my finger and also not jumping to the point where I touch. Is it possible to make the object stay where it was and move by dragging when my finger is on the screen?

thanks for reading and I hope can find good solution.

official tutorial video link is here (by Hutong games):
https://www.youtube.com/watch?v=DFmwLGhfWzY&list=PLD8AAC983AAD87D01&index=12


+ oh, and I also found the code which is exactly what I want to do (but this is for mouse?) add this on here might help you to understand what I am looking for:
Code: [Select]
using UnityEngine;
using System.Collections;

public class MouseDrag : MonoBehaviour {

private Vector3 startPos = Vector3.zero;
private Vector3 endPos = Vector3.zero;
private Vector3 targetPos = Vector3.zero;

private bool isClicked = false;

void Update()
{
DragObject();
}

void DragObject()
{
if (Input.GetMouseButtonDown(0))
{
startPos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
isClicked = true;
}

if (isClicked)

{

if (Input.GetMouseButton(0))

endPos = Camera.main.ScreenToWorldPoint(Input.mousePosition);



targetPos = endPos - startPos;
startPos = endPos;


targetPos = new Vector3(targetPos.x, targetPos.y, 0);
transform.position += targetPos;
}
}
}

Pages: [1]