Hi all,
I'm trying to figure out how to do a raising/lowering ramp a la Whirlwind or The Walking Dead in VP 10. I am trying to do this with a total of 4 ramps, toggling visibility and collidability as a counter increases and decreases. I have not been able to get .visible=true and .collidable=true to toggle for the ramps you can't see. See Below for my code, a picture of the ramp im trying to get to work
http://vpforums.org/.../71/5-12-15.png
sub rrampdown()
rampcounter=4
rightramp4.visible=true
ramptimerdown.enabled=true
playsound "fx_solenoid"
end sub
Sub ramptimerdown_Timer()
rightrampnull
select case rampcounter
case 1
rightramp1.visible=true
rightramp1.collidable=true
ramptimerdown.enabled=false
case 2
rightramp2.visible=true
rightramp2.collidable=true
rampcounter=1
case 3
rightramp3.visible=true
rightramp3.collidable=true
rampcounter=2
case 4
rightramp4.visible=true
rightramp4.collidable=true
rampcounter=3
end select
End Sub
sub rightrampnull()
rightramp1.visible=false
rightramp2.visible=false
rightramp3.visible=false
rightramp4.visible=false
rightramp1.Collidable=false
rightramp2.Collidable=false
rightramp3.Collidable=false
rightramp4.Collidable=false
end sub




Contributor
Top














are all trademarks of VPFORUMS.