i'll just explain it step by step, google docs is terrible :/
do the list in order, instructions in quotes like "4" points to the item you placed in 4, in this case a 2IO
place and do following:
1 ) VDS (this is used for the checkpoint index reference number)
un-check 'Reset In Checkpoint Restart'
2 ) Player Event
Set 'Type' to 'Reset to Checkpoint'
press 'Y' over 'Checkpoint Index' and select "1"
if you do not want the player to fault when cycling the checkpoints un-check the box 'Reset Physics'
-- this part teleports you the next checkpoint on RB press --
3 ) 2IO
set to 'Add'
operand1="1"
operand2=1
4 ) 2IO
set to 'Min'
operand1=number of checkpoints (do not count the start gate), say you have placed 8 checkpoint objects and you do not want to include the finish gate then use 8 for this number else use 9 if you want to include teleporting to the finish gate (this set the end game event, good for testing ending sequences).
operand2="3"
5 ) SVE
set to "Set"
value= "4"
set target to "1"
event/filter to "2"
place your RB and pass 'On Press' impulse to "5"
-- this part teleports you the previous checkpoint on LB press --
6 ) 2IO
set to 'Subtract'
operand1="1"
operand2=1
7 ) 2IO
set to 'Max'
operand1=set to 0 if you want to include the start gate or 1 if not.
operand2="6"
8 ) SVE
set to "Set"
value= "7"
set target to "1"
event/filter to "2"
place your LB and pass 'On Press' impulse to "8"
that should be it.
will do send email, can't believe i wore my keyboard out writing that tut and you have templates![]()
![]()
![]()
I got it working, but it doesn't disable LB at the start or RB at the end like mine does. And it's the same amount of pieces, but more confusing. That's what we need to avoid. Good work though. You certainly have a better grasp of things than I do.![]()
coolOriginally Posted by bobozilla, in terms of optimised code though, i don't think anything is going to beat it, in C++ (or most languages these days) it will look like this
x=min(upperlimit,x+1); for RB
instead of
x=x+1
if x greater than upperlimit set x to upperlimit
Its all Martian to me! lol You guys are streets ahead of me when it comes to all this coding and stuff.Originally Posted by dasraiser![]()
don't sweet it, im useless at the arty sideOriginally Posted by Barrybarfly![]()
Made another tut. This one's for a swingable weapon
Same here. All the stuff I know I learned from this lovely forum and RL's tut vidsOriginally Posted by Barrybarfly![]()
New tutorial: Rotate object (single axis) to always face the camera using OPE
Nice one nanner!![]()
Making a tutorial for 3rd person camera controls now.![]()