Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Trouble making a target get shot by the shooter
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
amateur




PostPosted: Mon Jan 04, 2010 11:27 am   Post subject: Trouble making a target get shot by the shooter

What is it you are trying to achieve?
making a game where there is a cat in the background that shoots the sheep. You control the sheep and you try to last as long as possible while trying not to get shot


What is the problem you are having?
limiting the sheep's(the sprite) movements so it doesnt go into where cat(the thing that is uppose to shoot the sheep) is and i making the cat shoot the sheep when it moves while the sheep is trying to last as long as possible since it is a game over when it is shop


Describe what you have tried to solve this problem
i dont even know what to do to solve it


Please specify what version of Turing you are using
4.1 would really love help asap(as soon as possible Very Happy)



Kurt_Final_pro.zip
 Description:

Download
 Filename:  Kurt_Final_pro.zip
 Filesize:  74.48 KB
 Downloaded:  78 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
StuartG




PostPosted: Mon Jan 04, 2010 7:31 pm   Post subject: RE:Trouble making a target get shot by the shooter

First off this game doesnt make much sense to me as in the game the tutorial says that you're supposed to shoot the sheep with your mouse cursor, yet you give the user the option to move the sheep....

Secondly, I think you should learn some of the basics of turing before jumping on a project like this.

BUT if you really wanna know how to solve your problem then you should look around for some tutorials on setting boundaries.

Basically if you wanna keep the sheep in the fenced area then just make sure that whenever the sheeps x or y coordinate is greater/lesser then the coordinates of your cage that the sheep get moved back into the cage.

example

If you got a wall thats set at X=200 Y=1 and you wanna make sure nothing goes by that wall than just whenever your Players X goes greater than (or less than, depending on what way you're coming at the wall) than your players X gets set back 5 pixels (or whatever works for you)

Hope that helps.
amateur




PostPosted: Tue Jan 05, 2010 9:40 am   Post subject: Re: Trouble making a target get shot by the shooter

My mistake i forgot that i changed the instructions after but forgot to put it in and what i really need is how to shoot the sheep automatically .


Kurt_Final_pro.zip
 Description:

Download
 Filename:  Kurt_Final_pro.zip
 Filesize:  85.06 KB
 Downloaded:  101 Time(s)

registration




PostPosted: Tue Jan 05, 2010 6:25 pm   Post subject: Re: Trouble making a target get shot by the shooter

your program doesn't run for me.. (error with pictures)
amateur




PostPosted: Wed Jan 06, 2010 11:21 am   Post subject: RE:Trouble making a target get shot by the shooter

did you take it out of zip folder first? Otherwise it will not work because that same program works for me
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: