playMaker

Author Topic: How to roll a 1 x 1 x 2 box along the floor  (Read 3751 times)

DaiDesign

  • Playmaker Newbie
  • *
  • Posts: 16
How to roll a 1 x 1 x 2 box along the floor
« on: April 03, 2013, 09:32:13 PM »
Hi

I've been trying to get a box (Dimensions are 1m x 1m x 2m) to roll along the floor when a key is pressed with no results. I don't want to use gravity, as I trigger gravity on when the box goes over the edge of the platform.

How can I set up the FSM to achieve this.

Any help with this would be amazing as I have tried for days.

Thanks in advance.

A3DStudio

  • Playmaker Newbie
  • *
  • Posts: 43
    • A3DStudio
Re: How to roll a 1 x 1 x 2 box along the floor
« Reply #1 on: April 04, 2013, 03:43:44 AM »
You mean a box like this?



Demo: http://dl.dropbox.com/u/67399806/StoneGameDemo/web.html
- Arrow keys to move
- Number pad to rotate camera

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: How to roll a 1 x 1 x 2 box along the floor
« Reply #2 on: April 04, 2013, 04:38:34 AM »
LOL  ;D

DaiDesign

  • Playmaker Newbie
  • *
  • Posts: 16
Re: How to roll a 1 x 1 x 2 box along the floor
« Reply #3 on: April 04, 2013, 12:03:36 PM »
Yep. Like that.

I've set the cam up already to rotate either left or right 90 degrees, plus zoom in  and out. At the moment I'm using a script to move the box but can't change the code to change the box direction after camera has rotated (As I can't code, good script as well, as I don't have to update it if I change the box dimensions). Plus I want to have the whole game made in Playmaker.

So how did you get the box to rotate using Playmaker, or did you use a script?

A3DStudio

  • Playmaker Newbie
  • *
  • Posts: 43
    • A3DStudio
Re: How to roll a 1 x 1 x 2 box along the floor
« Reply #4 on: April 04, 2013, 12:50:57 PM »
Whole game is created with playmaker, i don't use other scripts.
I use pivot points on the corners. So i rotate only the pivot points, not the box itself.

(sorry my english)





« Last Edit: April 04, 2013, 12:53:20 PM by A3DStudio »

DaiDesign

  • Playmaker Newbie
  • *
  • Posts: 16
Re: How to roll a 1 x 1 x 2 box along the floor
« Reply #5 on: April 04, 2013, 01:23:00 PM »
Thanks for the quick reply

I was just starting to use Empty Game Objects. Those screen caps look like a lot of head work. Plus thanks for posting them, I will try and make sense from them.

P.S. Your game looks good from those scrreenshots, and totally different from what I'm trying to do. Looks like a rolling box puzzle game mixed with Tower Defense, taken into the future and injected with steroids.
« Last Edit: April 04, 2013, 01:26:21 PM by DaiDesign »

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: How to roll a 1 x 1 x 2 box along the floor
« Reply #6 on: April 05, 2013, 01:00:10 AM »
Hey that game is growing up really well, keep it up!  :D