Is there a way to do this? cause i dont think so.

Talk about making games.

Is there a way to do this? cause i dont think so.

Postby The achievement » Tue Mar 28, 2006 1:17 am

Hi guys, is there a way to earn achievements in my game that im making? Have you guys ever played Xbox 360? ya like those achievements, i want to make an achievement where you click the button five times in 1 second, and then a meadl shows up, how do i do this??????
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby frodo » Tue Mar 28, 2006 5:17 am

use timers
User avatar
frodo
 
Posts: 127
Joined: Tue Mar 21, 2006 6:53 pm
Location: universe
Score: 2 Give a positive score

Postby frodo » Tue Mar 28, 2006 5:46 am

here it is:

create actor-->create timer;
timer --> event disable(mouse botton down);
mouse botton down-->script editor:

mousecount=mousecount+1;
if(mousecount==4)creatactor(medal ...);

createactor-->script editor
mousecoust=0;



That should work.
User avatar
frodo
 
Posts: 127
Joined: Tue Mar 21, 2006 6:53 pm
Location: universe
Score: 2 Give a positive score

Postby The achievement » Wed Mar 29, 2006 3:00 am

lol i dont know, you lost me after i create the timer :lol:
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby frodo » Wed Mar 29, 2006 5:46 pm

Do this:

Create actor-->Create Timer (1000);
Make a variable “mousecount”.
Mouse button down--> script editor:

mouse = mouse+1;

draw actor--> script editor:

if(mouse>5)
{
CreateActor(medal...)
}


Timer-->event disable(event mouse botton down;
User avatar
frodo
 
Posts: 127
Joined: Tue Mar 21, 2006 6:53 pm
Location: universe
Score: 2 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest