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

Pages: [1]
1
User Showcase / Re: iPhone Puzzle Game WIP
« on: February 22, 2012, 01:34:53 AM »
Did you finish the game? :)

2
iOS Help / Re: Add velocity to object based on drag velocity
« on: February 21, 2012, 03:33:21 AM »
Hi,

 ok, I'll work out an example. basically, you store the delta drag and delta time value during the drag and when drag is finish, you compute the velocity by dividing this delta drag by the delta time and done.

Bye,

 Jean



An example would be priceless.. I think I need to see how it's done, before my brain will understand it properly..

3
iOS Help / Re: Add velocity to object based on drag velocity
« on: February 21, 2012, 02:38:17 AM »
Thanks for explaining that.. But I don't quite get what you want me to do?

4
PlayMaker Tutorials / Re: New Playmaker Video Tutorial Series!
« on: February 21, 2012, 02:05:13 AM »
Quick question on that... do you want the object to ever stop on it's own after dragging, or keep on going forever (or until collision, etc)?

In my case, I want the gravity to stop it eventually. Think of it as an air hockey game.
Right now, I am getting the position of the touch input, and simply setting the position of the object to that position. The problem with that, is that it seems to ignore all physics when I drag it, allowing me to drag it through the borders.

So now I'm trying to apply force in the direction of the drag instead, but that is not that simple either.. :(

5
iOS Help / Re: Add velocity to object based on drag velocity
« on: February 20, 2012, 01:22:36 AM »
MODERATION EDIT : removed package. Make sure you don't include the playmaker dll when packing...

Woops, sorry!
Should be excluded now..

6
PlayMaker Tutorials / Re: New Playmaker Video Tutorial Series!
« on: February 19, 2012, 10:37:48 AM »
Yes!  I'm starting production on a touch/iOS series next week.  Lots of people are asking for that one.

AWESOME!!!

When is your estimated time of release for that series?

I've just made a drag system with playmaker, to drag and drop an object on a 2D plane. When I release the drag, I want the object to continue in the same angle, and with the same speed, as it got at the point of release.. Like if you toss a hockey puck across an ice surface..

My theory is to mesure the velocity in the drag state, and add it to the object when the drag ends.. But it does not seem to measure any velocity when I'm dragging (I'm using the "get velocity" action).. :(

If you could cover this in your tutorials in any way, I would be truly grateful!

7
PlayMaker Tutorials / Re: New Playmaker Video Tutorial Series!
« on: February 19, 2012, 08:32:25 AM »
I'm currently running through your first series of tutorials, and I think they're awesome! You start off quite slow, but I guess everyone should have a chance to get a hang of it, before you jump to more advanced techniques.

I was just wondering, if you are planning to do anything touch related? I'm currently in an internship with a small iphone/ipad studio, but I am struggeling a bit when it comes to touch input/controls. I think it is a very contemporary subject these days, and a lot of people would benefit from such series.


Keep up the good work!

8
iOS Help / Re: Add velocity to object based on drag velocity
« on: February 16, 2012, 03:42:53 AM »
Hi,

 I'll have a look over the week end ( sorry, a bit busy at the moment).

 bye,

 Jean

Thank you.. :)!

9
iOS Help / Re: Add velocity to object based on drag velocity
« on: February 16, 2012, 03:14:18 AM »
Thank you.

It sure makes sense when you say it like that. But as you mention youself, I don't really know how to implement this with playmaker..

I'm trying to just measure the velocity(of the drag) in one state, and add it to the object in the next state. But it does not measure velocity when I drag the object, only when it reacts with the physic engine.

I have attacted my scene if you got a minut to look at it.. I've been playing around with this problem for a couple of days now :(

EDIT:
It's like when I drag the object, it ignores all physics. I can move it through the walls too. If I find a solution to that problem, I think it can measure the velocity too.. maybe..

MODERATION EDIT : removed package. Make sure you don't include the playmaker dll when packing...

10
iOS Help / Add velocity to object based on drag velocity
« on: February 15, 2012, 05:58:20 AM »
Hi there.
I've made a FSM to drag and drop a gameobject on a plane(based on the MouseClickToDrag sample). But when I release the gameobject, I want to add velocity to it, based on the velocity it had on the point of release. The goal is to make the gameobject behave like an ice puck, and bounce around inside a 2D frame.

 I currently got 5 states:
Wait for click -> Clicked world? -> clicked object? -> drag object -> add velocity

On the "drag object" state, I've added a "Get Velocity" action, and stored it into a vector3 variable. On the "add velocity" state, I've added a "Add Velocity" action, and chosen the vector3 variable as source.

And here comes the problem: How do I measure the velocity the gameobject has on the point of release? I'm using "Mouse Pick" and "Set position", but when I drag it around, it dosen't measure any velocity.


I hope I've explained it well enough for you guys to understand. If not, I can post the whole project for you.
If you know another way to do this, feel free to post the suggestion.

Pages: [1]