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.


Messages - NN2

Pages: [1]
1
Playmaker Help / Re: Make guards have light censor
« on: November 12, 2017, 08:57:26 AM »
Thank you so much for making the video!
I'm looking forward to see it   :D

2
Playmaker Help / Re: Change Enemy sprites depend of the directions
« on: October 23, 2017, 12:53:55 AM »
It would be easy if you used keyboard, but since i presume you are using mouse since you're tweening. Since they don't use axis i presume they don't rotate?

Oh, I use keyboard not mouse. They don't rotate because they should move like characters in Pokemon gold and sliver but in 8 direction!

3
Playmaker Help / Re: Change Enemy sprites depend of the directions
« on: October 22, 2017, 05:43:36 AM »
You don't need to change the sprite, just set scale to -1 to flip. If you need to change the sprite, i know how, i'll post it when i get home.

Oh, Yes please! It's because I have sprites for 8 directions. I'm looking forward to see your reply. Thanks! :)

4
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!

5
Playmaker Help / Re: Make guards have light censor
« on: October 11, 2017, 09:16:50 AM »
Ah thanks for trying to help me out!
and also thanks for the tutorial videos! I've seed this videos before and they have helped me a lot :)

Since it is inconvenient for you to see the videos, I brought an image to explain what I want to achieve.
So the image I've attached is what I want to make with playmaker.
This is an free asset named '2D Dynamic Lights and Shadows' (the link:https://www.assetstore.unity3d.com/kr/#!/content/24083)

and what I want to understand are how to get the points the light hits, color specific areas, and the changes of radians and segments of the light.

Sorry if I'm bothering you. I am just working on this for quite long time and frustrated because I still couldn't find the answer.. :'(

If you cannot answer me right now. It's ok!
Thank you for reading all this :)

6
Playmaker Help / Re: Make guards have light censor
« on: October 11, 2017, 05:21:46 AM »
Hi, i recently gave an answer on this thread that might help you also :
http://hutonggames.com/playmakerforum/index.php?topic=15894.0

Thanks for the link! But how did you make the visible circle around the object? I'm not really sure if it's me who can't find it from your video :( what I want to get are the visible circle and the view angle from the video that I have posted.

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

8
Playmaker Help / Re: easysave2 error
« on: January 26, 2017, 07:11:21 AM »
OK, I will try to delete the file :)

9
Playmaker Help / Re: easysave2 error
« on: January 26, 2017, 06:46:09 AM »
so I update playmaker and now everything that is related to arraymaker works well.
however I cannot play my game because of this error:

Assets/iTween/iTween.cs(51,14): error CS0101: The namespace `global::' already contains a definition for `iTween'

deleting iTween.cs file didn't help me to solve the problem :(

10
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?

11
iOS Help / Re: Touch and Drag the Object on Device
« on: October 14, 2016, 01:40:22 PM »
Ok, I will try these :) think it will work.
Thank you!

12
iOS Help / Re: Touch and Drag the Object on Device
« on: October 13, 2016, 08:34:53 AM »
Hi,
thank you for the reply.
1. As you said, the mouse drag script worked. However, whenever I click other object while my finger is on, nothing can be active because the script I use does not contain fingerID. Unfortunately, I do not have much knowledge about script so I don't know how to put the fingerID into the script (this is the reason why I chose to use playmaker as well).
Not sure if I can ask this question here but can you make it work? How can I put TouchID into the script?

2. As following your advice I will try to use the assets that you suggested.
but because they are similar to each other, I am not sure which one is better me to use. If you are using both of them could you tell me the difference between them?

Sorry for too much questions. Hope I don't bother you much.
thanx

13
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]