Page 1 of 1

Splash Screen Questions

PostPosted: Sat Aug 22, 2009 2:36 am
by pxm4
I'm trying to create a splash screen for my game. I set the view to a splash screen actor with background image. On the screen I have placed a start button actor that when clicked sets the view +480 to the right which places the view on the first part of the level. I also have some code in the draw event of the player actor (view.x=x-240;) to center the view on the character. This works but when the character moves to the left you can see the splash screen and button. I want the character to stop - or at least the centering to stop when the character moves to the left. My questions are:

1) Is it better to place logic in the draw actor script to check to see if the charcter is near the left hand boundary and stop the centering code?
2) Are there better ways to handle this? Something built into to the designer that I don't know yet?

As you can tell I'm really getting into this. Every night I try to tackle another aspect of the game. Any help is appreciated! Thanks

Re: Splash Screen Questions

PostPosted: Sat Aug 22, 2009 10:27 am
by skydereign
Well, there is always the option of moving the actor/level further. You can also use the method in the caveman tutorials, using wire frame, but really this is a special case, so you wouldn't want to implement something to big, as it only happens once or twice. I would just suggest adding a border to your level frame, that way it won't show the splash screen. You could also have your actor appear as far left as it possibly can, but still with your centering code, it wouldn't really work. It also depends on what style view movement, and with the method you chose, there won't be just a simple fix, though you can just insert a conditional check in the draw code, but that sort of fix should be avoided, as again it only happens once or maybe twice in a level and you are inserting it into draw.