I'd like some help on a project called Shadow the Hedgehog 2:Burnt Hill its a basic scroller and I wanna add a loop de loop and a homing attack feature but I don't know how to script it.
Offline
I've been trying to do the very same thing. No luck yet.
Offline
G0D_M0D3 wrote:
Loop-de-loop: Make the sprite turn around.
Homing attack: Use the glide block, and a variable named 'homing_selected'
Thats not a very clear explanation.
Offline
Use this for the homing thing:
when gf clicked forever if <(homing) = [1]> glide [1] to (target) end end
Offline
id love to help. homing attack? no prob! and loopdeloops? that is so my territory!
LET ME HELP!
Offline
ok, for the loop with just horizontal (x) scrolling:
when gf clicked forever if <touching [loop v]?> point in direction (90) //In case you weren't already repeat until <(scroll x) < ((center x of loop) - (1))> change [scroll x v] by (normal rate here) end repeat (x) change [scroll x v] by ((normal rate here) * ([sin v] of (direction))) change y by ((normal rate here) * ([cos v] of (direction))) turn ccw (y) degrees end repeat ((250)/(normal rate here)) change [scroll x v] by (normal rate here) end endy can be calculated by taking the inside radius of your loop (r) and your normal rate (n):
Last edited by AtomicBawm3 (2012-04-09 23:33:53)
Offline
You will need to know the basics of creating a scroller.
When done, you need to establish a gravity engine and an engine for the entire game.
Then for loops, you will need to create an inverted x and y axis and a variable to know when you are in a loop.
And for homing, where there is an enemy, you need for it to be able to locate the enemy and dive in on it.
Offline
here, for a homing attack,this is how you do it
WHEN ? KEY PRESSED
IF ? KEY PRESSED
REPEAT 5 TIMES
CHANGE SCROLL BY 5
Offline