Creating things depending on another thing...

Talk about making games.

Creating things depending on another thing...

Postby Game A Gogo » Wed Jun 14, 2006 1:05 am

sorry for the bad topic, but i need to put a colision

and when it touchs the spikeImage, it react that all the rings go (the ones that are acumulated during the game) goes out flying aroud, and set back the counter to 0 Image
just like in Sonic1 to sonic and knuckles
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Diana Kennedy » Wed Jun 14, 2006 5:51 am

My answer probably will miss the point. I am not qualified but that's how I would approach the problem.

On Colision with the pike,

Code: Select all
score.textNumber = score.textNumber = 0000;


Well, guess that code is not right, but something like this.

And then, an activation event to every object that has to fly around. As for the flying around itself, There's probably a script for random movement I don't know.
I would be lazy and just use swirled paths, the actication events sending each object on a random path.
User avatar
Diana Kennedy
 
Posts: 257
Joined: Wed Dec 07, 2005 12:34 am
Location: France, where Presidents who got shot in Texas do exile ;-)
Score: 0 Give a positive score

Postby Game A Gogo » Wed Jun 14, 2006 12:18 pm

well, maybe thats it, or you meen
Code: Select all
Ring_Text.textNumber=0;
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Just4Fun » Wed Jun 14, 2006 11:27 pm

Try:
Create the following on your colliding actor (Little Man?)

-----Collision Event --> script editor:
--------- enter the following script:
------------- score.textNumber = 0;

HTHs
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby Game A Gogo » Thu Jun 15, 2006 10:01 pm

Just4Fun wrote:(Little Man?)


His name is: Jason, like in Jason's world, yup thats a little hoe the new jason's world will look, im so amased whit the little map!
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby DilloDude » Fri Jun 16, 2006 12:34 am

So you have your textNumber or another variable that displays how many rings you have collected, and you want a collision with spikes that makes you drop all your rings, correct?
Well, on your collision, first you probably want to add script to make you move upward (yvelocity = -5), and then add script for creating rings:
Code: Select all
int i;
for (i = 0; i < ringCount; i ++)
{
    CreateActor("Ring", "Ring", "no parent", "no path", rand(50) - 25, rand(50) - 25, false);
}
ringCount = 0;

Then you'll want script to make you rings move away from you, or any other pattern you want.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Postby Game A Gogo » Fri Jun 16, 2006 11:41 pm

Tanx!
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby pavel329 » Sat Jun 17, 2006 7:44 pm

Wat the hell are you making?
Drugs r bad.
Mgaay?

Image
User avatar
pavel329
 
Posts: 269
Joined: Thu May 25, 2006 2:05 pm
Location: Behind you
Score: 5 Give a positive score

Postby Game A Gogo » Sat Jun 17, 2006 9:23 pm

a sorta Super Mario World + Sonic ③
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest