Jump to content

Recommended Posts

Posted

I have this code that i'll post. I just getting a window border. Can anyone help me find this bug please? I'm completely new to frameworks and thought i would give it a shot.

 

Thank you,

 

 

~Xtreampb~

Now Loading.cpp

bool Life()
{
 while(death=false)
 {
   if(death==true)
   return death;
 }
}

 

I have found the secret to infinite life

 

Did I help you out? Like my post!

Posted

your if(view == 1) block hasn't got a a RenderFramework() call in it. and it seems that view is 1

 

 

Also, your check for KeyHit(KEY_UP) allows view to be set to 3, in which case nothing will happen.

LE Version: 2.50 (Eventually)

Posted

I fixed my issue. My updateframework();, RenderFramwork();, and Flip(0) was inside the second if statement. I moved them all down approx 3 lines to outside the if statement and that cleard up all issues

bool Life()
{
 while(death=false)
 {
   if(death==true)
   return death;
 }
}

 

I have found the secret to infinite life

 

Did I help you out? Like my post!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...