PDA

View Full Version : ShouldBeEzScriptProb



Lord Rahl
February 10th, 2005, 12:28 PM
Ok, my friend wanted me to look at his script in his game he is creating. So i looked at it. The movement script works and so does the wall collision. His only problem is a script where the char MC collides with the MC that should bring it to the next scene. His hitTest script says it should go to the next scene when the goodguy mc touchs the next scene MC. Here is what he has.
if (_root.goodguy, hitTest(_root.nextarea)){
nextScene();
}else{
stop();
}
It looks like it should work and I have tried different things, but some reason it still wont work. Any ideas. The file is attached if you want to try to figure it out.

shotmenot
February 10th, 2005, 03:02 PM
u cant test it because it doesnt go past the trees, i cnat see whats wrong :( and i need to know what isnt working before i check the scripting

shotmenot
February 10th, 2005, 03:10 PM
ok, i finally noticed or i think i noticed whats wrong, it doesnt seem to have movie clips, its just groups, it needs movie clips in order for it to work with the linking

Lord Rahl
February 11th, 2005, 10:35 AM
Ok, I think I found out the problem he had. His hitTest script kept acting like the stuff was allready hitting each other when they were not. I added a script leading to another frame where I drew a little background myself. But now have come across another prob. Attached are the fla and swf files. When you approach the right side of the screen you hit the next area MC. When it goes to the next area, rather than your character starting where he is supposed to, he starts where he was last. Couldn't figure out why though. (But then again I was working on it at 3 in the morning.:( )

shotmenot
February 11th, 2005, 10:44 AM
u just have it changing seens, you need to kind of make a door, have a line that when it is hit it send him to another line, its like how u do the tutorial seifertim makes, i think that should work, ill try fiddling with it to get it to work

shotmenot
February 11th, 2005, 10:46 AM
o i think i might see your problem, u might want to try instead of sending it to the next frame, add a new scene so it sends it to the new scene

Lord Rahl
February 12th, 2005, 09:13 AM
o i think i might see your problem, u might want to try instead of sending it to the next frame, add a new scene so it sends it to the new scene
Good idea, I'll give it a try.

Lord Rahl
February 12th, 2005, 09:22 AM
Great, it works. OF course I tried that before and it did not work, but perhaps my script was wrong. None the less, THX:thumb:

Lord Rahl
February 12th, 2005, 12:40 PM
Check it out. I added a few things into my friends game to spice it up for him and he loved it. of course it has much more that could be done. But uniqe for the moment.:beer:Oh almost forgot for explanation. A is to talk to the people and such. And of course the graphic designs will change.:cool:

shotmenot
February 12th, 2005, 04:10 PM
thats cool, still needs some work, but its nifty, u cant buy things (or at least i cant)

Lord Rahl
February 12th, 2005, 04:48 PM
Yea its getting more and more like D2. I just messed around with some uniqe things but now I kinda think its like D2. If you have played it you will see what I mean when you try this updated version.