Hi Guys,
I am writing a simple game in which the hero will need to jump on a trampoline.
the thing is there are various trampolines (set as instance name tramp1, tramp2, tramp3 etc, and only one trampoline will be active at any given time.
i have set a variable _global.level which decides which trampoline is active
but how do i do the hit test?
so far i have:
trampland = _parent.ground.tramp2.spring.hitTest(this._x+8, this._y+32, true);
if (trampland) {go and do something}
but how do i tell which ‘tramp’ to use?
have been trying _parent.ground.tramp[_global.level].spring, but to no avail
can anybody help please…
Richard
p.s.* (spring* is the ‘trampoline bed’ that activates the bounce)