Jump to content



Submitter

SUPPORT TOPIC File Information

  • Submitted: Jun 12 2011 12:05 AM
  • Last Updated: --
  • File Size: 32.76KB
  • Views: 2730
  • Downloads: 176

Download Ramp Dropable Tutorial 1.1

* * * * * 1 Votes



Here is an example of ramp dropables (works only with alpha ramps)

If keycode=32 then 'Use "D" to Drop the ramp
Ramp1.WidthBottom=0 'Sets the Width to 0 so has the appearance of not being there
Ramp1.WidthTop=0
Ramp1.Collidable=false 'Ball does not interact with ramp
End If

If keycode=19 then 'Use "R" to raise the ramp
Ramp1.WidthBottom=250 'Sets the width of the ramp to make it "appear"
Ramp1.WidthTop=250 ' - these values can be set to anything, not necessarily the initial ramp values
Ramp1.Collidable=true 'Ball does now interact with ramp
End If

Light1.state = 1 'Refresh the light state to force VP to re-draw the whole playfield
Light1.state = 0





Other files you may be interested in ..





  • 18,351 Total Files
  • 57 Total Categories
  • 872 Total Authors
  • 25,386,978 Total Downloads
  • Frozen Butterfly Latest File
  • anthias Latest Submitter

user(s) are online (in the past 15 minutes)

members, guests, anonymous users