Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: DaiDesign 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.
-
You mean a box like this?
(http://a3ds.files.wordpress.com/2013/04/stone_game_demo.jpg)
Demo: http://dl.dropbox.com/u/67399806/StoneGameDemo/web.html (http://dl.dropbox.com/u/67399806/StoneGameDemo/web.html)
- Arrow keys to move
- Number pad to rotate camera
-
LOL ;D
-
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?
-
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)
(http://a3ds.files.wordpress.com/2013/04/sg_2.jpg) (http://a3ds.files.wordpress.com/2013/04/sg_2.jpg)
(http://a3ds.files.wordpress.com/2013/04/sg_3.jpg) (http://a3ds.files.wordpress.com/2013/04/sg_3.jpg)
(http://a3ds.files.wordpress.com/2013/04/sg_1.jpg) (http://a3ds.files.wordpress.com/2013/04/sg_1.jpg)
-
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.
-
Hey that game is growing up really well, keep it up! :D