The Daily Click ::. Forums ::. Klik Coding Help ::. These unexplainable bugs...
 

Post Reply  Post Oekaki 
 

Posted By Message

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
25th January, 2008 at 07:38:07 -

I'm once again making a platformer, which scrolls when the player reaches the border.

When the player dies, 3-4 seconds go by and the comes a text with "restart Y/N". Pressing N will close the app and Y will restart the level (I've set it to "jump to frame 1" because I don't want the music to start from beginning).

The problem is.... If you die AFTER you have scrolled the level and press Y to restart, the next time you scroll all the images gets totally misplaced and I can't see why. Any suggestions?

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  531

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
25th January, 2008 at 10:48:19 -

Are you using TGF? If so I know exactly what you mean, I've had that problem once or twice when using TGF a few years back. Unfortunatly, I never found a solution.

 
Image

Tell 'em Babs is 'ere...

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
25th January, 2008 at 12:20:46 -

I'm using MMF, this is weird....

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14456

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
25th January, 2008 at 12:53:29 -

We might need a little more detail regarding how the scrolling works.
Do you need to reset various values? maybe some global values you change when the level has scrolled?

 
.

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
25th January, 2008 at 20:07:35 -

No global values at all, yet.
Player is getting closer than 0 pixels from windows edge = Center display at Player.
When player dies, a text shows and ask if u wanna restart level Y or quit N.
Pressing Y = Jump to frame number 1.

I've noticed that if i change "Jump to frame number 1" to "Restart current frame" will have the same bug + restart the music (which I don't want). Only way it'll work is if I change it to "Restart Application", which means I won't be able to make more than one level. And thats, eh. yeah. Argh, I want this to work!


EDIT: Maybe I should post an example... --> http://www.box.net/shared/qyn15kxz40 <--

Do like this; First try to get far enough to make screen scroll (cmon, its not hard), secondly you die. DIE. Wait for the message and press Y. Then once again make the screen scroll, you will now find the frustrating bug.

EDIT2: Eh, I forgot to mention.. Make a quick double tap on the jump, to get higher.

Your help is truly appreciated.

Image Edited by the Author.

 
n/a

Mr. Waffle



Registered
  29/12/2007
Points
  103
26th January, 2008 at 06:00:14 -

Okay, this should probably work, as I had this bug happen lots of times in TGF.

First, create a new empty frame.
Then, in your level; when the player dies, set Global Value 1(or one that you don't use) to the number of the current level/frame; then make it jump to the frame we just created.
In that frames events, put: at the start of level- jump to frame 'Global Value 1'.

(you only need the global value if you are going to make more than one level P: )


Bleh, understand? Sorry if it doesn't work~

Image Edited by the Author.

 
n/a

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
26th January, 2008 at 07:20:18 -

Hah, ofcourse! It works perfectly. Thanks!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click