Does anyone know why its going slow when scrooling , is it because the map is too big ??
And , its changing the position when the player , touches the door .I need to do it when the player touches the door and press UP key ( so when player is not touching the door , with UP key he will jump , when he touch the UP key is for chaning position to its destination ) !!
give each tile prototype a type value, check this value when entering a cell, if the upKey is pressed and the type is "door" then your all set. You might be able to use instanceof but i'm not sure if that works with AS1 classes.
I think i understand tiles , but i dont think that i can modify it !!
And when i make player bigger (3 tiles tall) , i cant controll the player , first he cant move , then when i press the button to JUMP he isnt jumping , only like flying he is going to the top of level ....
And when its on player 8 , it cant even make built the level . its freezing , then its saying that the movie is playing too slow , do you want to abort the script , or something like that .
Mate, ending every sentence with !!!! isn't the most endearing way to get help ( It's like finishing every sentence with "lol" ).
Back to the subject matter, if it's freezing comment out all the functions, and then uncomment them one at a time until you find the one that causes the freeze.
Then, comment each line in that and repeat the process. 99 times out of 100 this will show you your problem ( It sounds like an infinite loop, so check all your loops carefully ).
Debugging isn't an art, it's just part of being a developer, and for the most part common sense. Reduce all the possibilities and what you're left with is usually the answer.
Fix that, then look at the jumping bug ( Work out how the tile collision works, are you testing the top of the movieclip against the tile correctly etc. )
1) Changed function jump to doJump, to avoid conflict with 'jump' variable.
2) Changed typo of 'newMap' to 'newmap', to fix case sensitivity issue.
3) Initialized variables fixx and fixy outside of if..else statement in buildMap function.
4) Changed 'and' operators to '&&' throughout.
Squize is right lol. It can push people away because to us you're coming off quite pushy and demanding lol. Relax and try to explain to us exactly what's not working, clearly and as detailed as possible lol. Also try to take a look at TonyPA's tutorials lol. LOL.
The 'Boose':
ASUS Sabertooth P67 TUF
Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
8GB G.Skill Ripjaws 1600 DDR3
ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
New addition: OCZ Vertex 240GB SATA III SSD WEI Score: 7.6
Argh, IP don't do the lol thing even in jest mate.
Man that turns my stomach. "I'm making an rpg lol" What the hell is there to laugh out loud for there ? Have these people never actually heard a joke ?
Argh, IP don't do the lol thing even in jest mate.
Man that turns my stomach. "I'm making an rpg lol" What the hell is there to laugh out loud for there ? Have these people never actually heard a joke ?
And... back to the thread.
Squize.
[offtopic]
Yeah, in a mmorpg that I play, all of my guild members have voted me the loller out of the entire group... lol. Anyhow, now that they've done it, I can't seem to feel dumb every time I do it, but it's a fairly hard habit to break once you develop it.
[/offtopic]
The 'Boose':
ASUS Sabertooth P67 TUF
Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
8GB G.Skill Ripjaws 1600 DDR3
ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
New addition: OCZ Vertex 240GB SATA III SSD WEI Score: 7.6
And by the way , i am 15 years old , and i am still learning ActionScripts .
Ive bought a book .... ActionScript Bible. I think it is good enought for beginners .