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

Username:   Password: 
 RegisterRegister   
 Some Questions
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
dphearnz




PostPosted: Thu Nov 30, 2006 11:02 am   Post subject: Some Questions

kinda new at turing here.......gotta create and RGP game, is it possible to animate a jpg file in turing.........if so how is it done?
Sponsor
Sponsor
Sponsor
sponsor
Clayton




PostPosted: Thu Nov 30, 2006 11:23 am   Post subject: (No subject)

dphearnz wrote:

kinda new at turing here.......gotta create and RGP game


really? thats too bad, teachers stressing game dev at the very beginning isn't very good.

As to your question, not in the essentials can you "animate" it, you can however move it around the screen, bounce it if you want. If you are using Turing 4.1, then you can use sprites, which is basically what you want.
Cervantes




PostPosted: Thu Nov 30, 2006 1:17 pm   Post subject: (No subject)

It can be done, but it's a bit of a hassel. You've got to have an array of jpg's. Each picture is one frame in an animation. Have a counter variable incriment from 1 up to the number of pictures you have, and draw the picture corresponding to that counter's value.

Also, please don't double post, and please don't post threads for help in [Turing Source Code]. I've deleted that post. Finally, please use descriptive topic titles.
Hackmaster




PostPosted: Fri Dec 08, 2006 10:38 pm   Post subject: (No subject)

ya, I have to agree with Freakman here.. RPGs at first can really scare you off of coding all together because of the complexity.

What do you mean by animated? if you mean user free, that is moving constantly with no input from user, or something like that, cervantes basically, (as always) as summed it up perfectly.

on the other hand, which I think is more likely, you want the user to be able to control a guy that walks around, and it looks like he is, you need to use Input.Keydown, which I won't go into here, because it's posted in numerus places around the site already. but, basically, you get a key from the user, and you use some counting system to decide, say, for a basic walking guy, when to switch from right foot to left. it is relativly simple once you get the hang of it, but you need to play with it.

good luck!
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  [ 4 Posts ]
Jump to:   


Style:  
Search: