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

Pages: [1] 2
1
PlayMaker Help / Re: Character Jump
« on: January 18, 2013, 05:59:44 AM »
That's not the way to make that.

Take a look here: http://hutonggames.com/playmakerforum/index.php?topic=1951.0

2
Action Requests / Re: Simple Sprite
« on: January 12, 2013, 12:05:24 PM »
I have made my action and it's working property. It's a Play/Stop animation for EZSprite asset. It's based on a @jeanfabre action I found in the forum...

Now I'm testing it, when I'd have some time I'll publish it and make a new thread for it ;D

Anyway I'll try to make another for this asset, for learning and maybe could be useful to anybody.

3
Action Requests / Re: Simple Sprite
« on: January 12, 2013, 10:37:58 AM »
Im using ragepixel currently and there are already actions for playmaker, animations are pretty easy to do with it also, its free.
Ragepixel is more focused to PixelArt stile...

I've realised that Simple Sprite is not using Atlas, so is less efficient than other solutions... I'm testing other solution right now. I'll try to make the actions myself  ;D

4
Action Requests / Simple Sprite
« on: January 09, 2013, 05:07:01 PM »
I've been looking for a 2D solution for Unity. I've found Simple Sprite:


Quote
Simple Sprite
By Black Rain Interactive, Free

Have you ever wanted to make your own sprite based game but didn't know where to start?
Have you ever tried other packages but found them too hard to learn?
If so, then Simple Sprite is the solution for you!

You no longer have to go through the trouble of creating Sprite Sheets or making a Texture Atlas. Simply attach the script and drop in your images. Done in only two steps.

Features:
- Setup only takes a few simple steps
- No more Sprite Sheets or Texture Atlas
- Automatic billboarding
- Each object can have up to 10 animations
- Each animation can have unlimited frames
- Easy to use commands
- Animate your sprite with only two simple lines of code
- Change the animation speed at runtime
- Perfect for beginners

There are two versions one free and the other paid. Here you have the comparative between both versions:


It seems really powerful and the scripting is asy but I'd like be able to use it with PlayMaker, can anyone help me with some actions?

Here is the link to the free version: https://www.assetstore.unity3d.com/#/content/4640

5
PlayMaker Help / Re: Add force
« on: December 13, 2012, 07:13:30 AM »
It's rare, because if I don't play any action in the Check Rigid body state null reference error doesn't appear...

Please take a look:

6
PlayMaker Help / Re: Add force
« on: December 13, 2012, 06:37:29 AM »

I'm trying to convert from this basic script:
Code: [Select]
function RayShoot(){

var hit : RaycastHit;
var direction = transform.TransformDirection(Vector3.forward);
Debug.DrawRay(transform.position , direction * Range , Color.blue);
if(Physics.Raycast(transform.position , direction , hit, Range)){
if(hit.rigidbody){
hit.rigidbody.AddForceAtPosition( direction * Force , hit.point);
}
}
}

The problem is that when I arrive to the Check Rig body state, the variable objectHited is null.


7
PlayMaker Help / Re: Add force
« on: December 13, 2012, 04:40:22 AM »
Hi!

I solved the problem, because I gonna need that for some weapons...

I've been trying to implement what you said using Raycast, but I'm going in circle (I've been trying to do it by myself before asking again). Do you know if are there any samples related in the forum? I've been taking a look but not found anything.

I think I show an example of a robot firing but I've no idea where...

Cheers!!

8
PlayMaker Help / Re: Add force
« on: December 11, 2012, 03:30:30 AM »
Hi!

What I want to do is create a new instance of my existing prefab... I've seen scripts that uses clone or instantiate.

It was supposed to be the base for a machine-gun  :-\

Cheers!

9
PlayMaker Help / Add force
« on: December 10, 2012, 03:01:37 PM »
I´m working on an easy example but I don't know why, it's not working propertly. Here is my basic setup:


I have a gameobject.
I initialize a prefab, ad force to it and wait. The repeat it.

Here goes the unity package: http://www.mediafire.com/?4c9p9l6vmga5rok

The problem is that firs time appears my prefab, but then appear twice togeter, please take a look that video:

10
Hi!

After limitation I found with standard assets, I start playing with Virtual Controls Suite which has native support for Playmaker.

11
iOS Help / Re: Joystick movement
« on: November 30, 2012, 09:43:49 AM »
Hi all!

I've been trying to understand Joystick script. Using settings by default, the range you can move it's defined by vectors guiBoundary.min.x and , guiBoundary.max.

With default values:


I've tried to detect when you are moving out of the range, calculating hypotenuse and trying to modify values. Code is almost working but only in half of the surface.

If you want to help me, please download my modified joystick.js an try it.

Cheers!!

PD: this version also works with mouse!

12
iOS Help / Re: Joystick movement
« on: November 29, 2012, 09:38:07 AM »
Hi!

Where has gone kiriri's post??

This is exactly how i try to fix it  ;D

First I calc de angle:


After that, I calc the size of the segments:


Yo can take a look here:
Code: [Select]
// Normalize code ;)
var angle : float;
angle = Mathf.Atan(position.y/position.x);
position.x = Mathf.Cos(angle);
position.y = Mathf.Sin(angle);

The problem is that I don't know how to apply that to the GUI movement...

Cheers!

13
PlayMaker Help / Re: Problem with camera [SOLVED]
« on: November 29, 2012, 09:33:46 AM »
I make that using Get Position and Set Position every frame. Is that the best way?

14
iOS Help / Re: Joystick movement
« on: November 29, 2012, 09:00:23 AM »
Hi,

 I think I get it now, you want the joystick to be constraint within a circle, not within a square.

 Is that right?

bye,

 Jean

That's exactly what I want!!

 :-[ sorry for my poor English.

15
iOS Help / Re: Joystick movement
« on: November 29, 2012, 07:33:09 AM »
A little update:

  • I've enabled 2nd joystick and it's controlling view
  • I've finished the FMS that controls the animations

The next step is try to fix the shape of the movement  :-\
I'm a little lost with this so if anybody has some idea about how to fix it, please tell me.

Cheers!

Pages: [1] 2