The Daily Click ::. Forums ::. Klik Coding Help ::. How do I make one object turn into another at the push of a button?
 

Post Reply  Post Oekaki 
 

Posted By Message

Toxic



Registered
  02/11/2004
Points
  61
7th November, 2004 at 19:58:38 -

Yeah, the question's on the title.

 
Look me in my brand new eyes.

Echisketch



Registered
  05/09/2004
Points
  39
7th November, 2004 at 20:13:05 -

Sorry but, thats a REALLY vague question. Rephrase your question with these things in it.

1. What program? If it is a CT program. List what it is; KnP, TGF, MMF 1.0-.5
2. Making a game? Perhaps a drawing program. Or something else, list if so.
3. Use proper grammar and english if neccesary.
4. Put more detail in each portion of the question.

Follow these points and the question should be answered reasonably well.

 
n/a

Toxic



Registered
  02/11/2004
Points
  61
7th November, 2004 at 20:21:16 -

It's a game and it's TGF. And you should take your own advice and use proper english.

Image Edited by the Author.

 
Look me in my brand new eyes.

Toxic



Registered
  02/11/2004
Points
  61
7th November, 2004 at 20:43:29 -

Nope, I found one error. He forgot the apostrophe in that's. But that's not the point, can someone answer my question?

 
Look me in my brand new eyes.

Echisketch



Registered
  05/09/2004
Points
  39
7th November, 2004 at 20:48:05 -

Considering I gave you valid points to recorrect your question.

But you're still expecting people to answer it, in the state that it's at, Good luck.

Welcome to TDC.

 
n/a

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
7th November, 2004 at 20:56:14 -

Be polite to people you want help from or work it out yourself. It's pretty easy anyway.

 
Image

vortex2



Registered
  27/05/2002
Points
  1406
7th November, 2004 at 21:27:11 -

Well if you have an active you can use multiple frames and simply changes frames/animations at the push of a button... or you can use multiple actives and delete/recreate at the same point the object you want.

So when you click the button ethier:

a) change the frame/animation of the single object

OR

b) delete the object and create the new one at the same coordinates as the first.

Not too hard.

 
A bit of insanity with every bite!

Toxic



Registered
  02/11/2004
Points
  61
7th November, 2004 at 21:31:48 -

Thanks, but the object is going to be moving around, so I don't know if the coordinates thing will work. I'll try doing the animations, though. Thanks again.

 
Look me in my brand new eyes.

Toxic



Registered
  02/11/2004
Points
  61
7th November, 2004 at 21:47:37 -

Hmm it seems like the animations aren't working either. Here's an explanation... Okay, say Bob changes into Joe's stopped animation when I press Ctrl. Then when Joe tries to walk, he's still in his stopped animation but just sliding around. And when Joe shoots, he uses Bob's shooting animation instead. So how am I supposed to do this? Sorry I'm very inexperienced.

 
Look me in my brand new eyes.

Noyb



Registered
  31/05/2004
Points
  1117

VIP Member
7th November, 2004 at 22:12:28 -

Replacing A with B: Set B at 0,0 from A. Set direction of B to direction of A. Set any alterable values/animations/whatever that you use of A in B. Destroy A.
Seriously, just try thinking a little more.

 
"Omg. Where did they get the idea to not use army guys? Are they taking drugs?" --Tim Schafer on originality in videogames

Wicked Studios



Registered
  25/10/2004
Points
  460
13th November, 2004 at 12:43:51 -

In the event editor click "button is clicked" and for the actions select "create object A at 0,0 from object B" the delete object B

 
"Actually sir, we found a tiny unicorn in your exhaust. It was jumping around poking holes in your gas tank." "Oh thank you I did not know that. A tiny unicorn? Wow."

Liquixcat

Administrator
Lazy Coder

Registered
  08/12/2002
Points
  201

VIP MemberLikes TDCKitty
19th November, 2004 at 02:03:40 -

"It's a game and it's TGF. And you should take your own advice and use proper english."

You shouldn't start new sentences with the word 'and'. Two words in a short sentence, especially in a conjunctive state should not be used. It's not incorrect but makes you look retarded. Instead it would look better to write, 'I am using TGF to make a Game.'

Upon pressing 'ctrl' set active1 to X,Y to X,Y of active2
Set direction of active1 to direction of active2
set values and blah blah whatever else to active 1 from active 2
destroy active2

 
thinking is like pong, it's easy, but you miss sometimes.

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
21st November, 2004 at 12:25:43 -

i don't want to drag this post off-topic, but if you're going to be ridiculously pedantic and lecture people, liquixcat, you should probably make sure you're right first... it's perfectly acceptable to start a sentence with "and", "but" or any other conjunction.

http://www.plainenglish.co.uk/plainenglishguide.html

 
www.thenatflap.co.uk

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
21st November, 2004 at 13:00:33 -

Yet again Pete comes to the rescue with some useless information.

Using flags might help (e.g. if flag 0 is on, set all animations to Guy 2, and if flag 0 is off set all animations to Guy 1), then just have an event to set the flag 0 on/off.

 
My signature is never too big!!!

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
21st November, 2004 at 13:27:40 -

CAPITAL LETTER ON LIQUIXCAT, PETE!!!!!!

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
   

Post Reply



 



Advertisement

Worth A Click