Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Machine Puzzle Help!
Viper85626 Offline
Junior Member

Posts: 46
Threads: 6
Joined: Apr 2013
Reputation: 2
#1
Machine Puzzle Help!

Hi everyone!

I'm fairly new to making Amnesia custom stories. In fact, the one I'm developing now is my first. And no, I'm not one of those people that put jumpscares everywhere. I actually want to make a serious story.

Anyway, I want to make a puzzle where you have to fix a machine. I understand how to code it and everything, but how do I make it so when the puzzle is finished, the machine parts actually begin moving? I haven't been able to figure it out. :/
06-12-2013, 11:43 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#2
RE: Machine Puzzle Help!

RotatePropToSpeed(string& asName, float afAcc, float afGoalSpeed, float afAxisX, float afAxisY, float afAxisZ, bool abResetSpeed, string& asOffsetArea);

asName - internal name
afAcc - acceleration
afGoalSpeed - desired speed
afAxisX - rotation around X axis
afAxisY - rotation around Y axis
afAxisZ - rotation around Z axis
abResetSpeed - determines whether the speed is resetted after goal speed is reached
asOffsetArea - the area to rotate around, if ””, then the center of the body is used

"What you think is irrelevant" - A character of our time

A Christmas Hunt
06-13-2013, 01:18 AM
Find
Viper85626 Offline
Junior Member

Posts: 46
Threads: 6
Joined: Apr 2013
Reputation: 2
#3
RE: Machine Puzzle Help!

So I apply this line of code to any of the props I use and they begin animating? Like the cogwheels and pistons?
06-13-2013, 03:52 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: Machine Puzzle Help!

(06-13-2013, 03:52 AM)Viper85626 Wrote: So I apply this line of code to any of the props I use and they begin animating? Like the cogwheels and pistons?

Yup. Make sure it's in a function. You might wanna change those to yours.

"Veni, vidi, vici."
"I came, I saw, I conquered."
06-13-2013, 06:28 AM
Find
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#5
RE: Machine Puzzle Help!

(06-12-2013, 11:43 PM)Viper85626 Wrote: Hi everyone!

I'm fairly new to making Amnesia custom stories. In fact, the one I'm developing now is my first. And no, I'm not one of those people that put jumpscares everywhere. I actually want to make a serious story.

Anyway, I want to make a puzzle where you have to fix a machine. I understand how to code it and everything, but how do I make it so when the puzzle is finished, the machine parts actually begin moving? I haven't been able to figure it out. :/

When you got it working save it in a doc file like this.

Script.txt

/////////////MACHINE FUNC/////////

Copy Paste script here.


"so when you need it again you can always copy paste and change a few things"

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
06-13-2013, 07:22 AM
Website Find
Viper85626 Offline
Junior Member

Posts: 46
Threads: 6
Joined: Apr 2013
Reputation: 2
#6
RE: Machine Puzzle Help!

Thank you guys Smile
06-14-2013, 02:44 AM
Find




Users browsing this thread: 1 Guest(s)