Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
TeknoCyber
12
Years of Service
User Offline
Joined: 8th Nov 2013
Location:
Posted: 22nd Jan 2014 17:18
Ok so once again i seek some help, along with my pal John Wu. We have a pretty good game so far, but its a bit sloppy. Anyways, we wanted to make it so if the "Player" goes off the edge, then, it ends the game. we have a floor and everything, but we cant figure this out. The teacher has been trying to figure this out too. So I was thinking an if statement that says when the "player's" distance from the floor is 100 away on the y, then it ends the game. But we still dont have an end section. So unless we can get those in i dont think it will be too easy. Thanks for any help that we get.
-TeknoCyber



"It's not death I fear, I fear not being ready for it." -Tristan Green
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 22nd Jan 2014 17:53
I'm a little confused about what you want help with
Your solution for detecting if the player's gone off the edge (checking the y value) sounds great to me, so do you want help coding the end section? We'd love to help, but you need to give us a few more details
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 22nd Jan 2014 18:01
You had a mess of Do/loops . I made some changes in your code, but without any image.

Try new code.



I'm not a grumpy grandpa

Login to post a reply

Server time is: 2026-07-07 03:46:38
Your offset time is: 2026-07-07 03:46:38