PDA

View Full Version : [FMX04]loops



nathan99
April 4th, 2005, 10:00 PM
Hey, does anyone know how to make loops for a character, sort of like sonic the hedgehog thing?..... a loop-the loop.. nothing to do with animations

nathan99
April 6th, 2005, 07:33 PM
is this even possible?

Templarian
April 6th, 2005, 07:44 PM
do u mean like when sonic goes in a loop. So sonic and would slide around the loop? yes its possible, move the movieclip till the little dots above him half way inbetween one of the loops and his head. Then use the rotation when he is hit tests the bottom of the loop. if speed is too little have it add so much and then - so much. if he has enough speed the friction code will not slow him down that much and he will make it though the loop.
i think this is what u want if not uhh ill try to answer the real ?.

nathan99
April 7th, 2005, 01:23 AM
yer thats what i mean....i just dont no how to execute that...using code or whateva

Templarian
April 7th, 2005, 02:02 AM
uhh... one sec ill make an example if not tonight in the morning.
//edit -ur lucky it will be tonight

Templarian
April 7th, 2005, 02:19 AM
okay here it is. (probably better variables and code placement, but i want to play Americas Army so bye.

nathan99
April 7th, 2005, 03:08 AM
thanks ill take a look at that

nathan99
April 7th, 2005, 03:47 AM
umm ok, thanks again heaps, however it has a few problems...
one minor one..
my animation loops are tiny(very minor)

more serious:D
he can only run thru the loop one time?
and one way?
how do you change this?

nathan99
April 7th, 2005, 04:41 AM
dw i got it yay:D thnks heaps for the starter, took bout another 100 or so lines of codes n bout 6 more images but i got it:D

nathan99
April 7th, 2005, 05:27 AM
ok i have got the main character and loop working, but the loop wont work when i copy it through would you guys be able to do it for me please?:D

this is my movement
http://www.kirupa.com/forum/attachment.php?attachmentid=11211
and this is the loop

Joppe
April 7th, 2005, 10:17 AM
okay! i fixed it .. i think .. well almost .. well i fixed the loop in your randolf fla so here is it .. Hope your happy :D

nathan99
April 7th, 2005, 09:45 PM
thanks for that but it doesnt work...but thats my fault. I must have accidentally deleted my main character n saved it :td: :crying: . what i actually want is when they run left through it they rotate clockwise and when they run right they rotate anticlockwise...like a loop-the-loop

nathan99
April 8th, 2005, 12:56 AM
Templarian would you be able to add it in? if/when u have time?

Templarian
April 8th, 2005, 10:28 PM
okay... i have time now... so you want (i hate doing peoples work but ur sort of new to flash i think so i will so u can learn from the code):
1.) both ways though the loop from both sides.
2.) a way for you to just copy the loop and use it over and over.
3.) and the entire game made for u (lol, take no offence).

oh yea and im keeping it basic. (none of the fancy code).

Templarian
April 8th, 2005, 11:15 PM
walla sry got distracted part way though. your not on the forumns probably anyway.
most of its there and you can add as many loops as u want. you can jump now with space... dont ask why... i was going to start making a game but figured ill wait till urs.

nathan99
April 9th, 2005, 01:14 AM
hee doesnt walk at all....jus loops??

nathan99
April 9th, 2005, 01:15 AM
n im not new......nearly a month now...

Templarian
April 9th, 2005, 02:27 AM
walk...
that code is much easier then the looping... if you want to make it simple just make it play frames when u hit the left key.

just use the same kinda code i used for the jumping. I'm tired gnite.
//edit oh yea also forgot to say i dont have MX04 so i couldnt see his version.