point making problem

Non-platform specific questions.

point making problem

Postby Turon » Mon Jan 25, 2010 1:30 pm

How do you add points to your game because i tried but it was not sucsesful i would like to learn the amazing trick

-Edit- 18/6/2015
This was like five years ago? The way I expressed myself has change quite a lot since then...
You know what I was actually asking here was how to make a Mario power up like the fire flower,
I still haven't figured out how to do that :mrgreen: .
Last edited by Turon on Thu Jun 18, 2015 5:29 pm, edited 4 times in total.
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: point making problem

Postby Hblade » Mon Jan 25, 2010 3:36 pm

By points do you mean score? If so, make an actor, put some text on him Then go to draw actor - script editor. Then make a variable called points, then put this in
sprintf(text, "Points: %d", points);
Then click okay :D
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: point making problem

Postby Turon » Mon Jan 25, 2010 5:14 pm

No thanks not like that i have done that before i mean you collide with an object and your character suffers temporal change :)
Last edited by Turon on Tue Jan 26, 2010 10:29 am, edited 1 time in total.
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: point making problem

Postby Hblade » Mon Jan 25, 2010 6:13 pm

Oh, hmm... well you could do this:
Make an event that recovers the character's HP when called. For example, you collide with the enemy (Thus damaging you) but also instead of damaging you, it does this
Make a variable called tempHP and recover then use this script inside of draw actor (Assuming your HP variable is called HP)
Code: Select all
if (recover == 1 && tempHP>HP)
{
    HP++;
    if (HP == tempHP)
    {
        recover = 0;
    }
}

Then put this code inside of the colide actor (Assuming the collision does 4 HP damage)
Code: Select all
tempHP = HP;
HP = HP - 4;
recover = 1;

Hope it works :D
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: point making problem

Postby Turon » Tue Jan 26, 2010 5:17 am

Maybe my explanation was not so good. Have you ever heard of Mario it comes in a collection of three games that you open with project 64 now on super Mario there are cap blocks that when you collide with it you will get more life or get bigger or destroy actor disabled now that is what i am looking for. Do you call that a point or what let me know if you call it something else :wink:
Last edited by Turon on Wed Aug 11, 2010 6:54 am, edited 1 time in total.
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: point making problem

Postby Hblade » Tue Jan 26, 2010 3:37 pm

I still dont get what you mean lol.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: point making problem

Postby Turon » Tue Jan 26, 2010 4:17 pm

:? I may need to start over. I actually mean a point script thing.

[code][[code]PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1.000000, 1.000000, 0.000000, 1.000000)

How can I learn more about these?
Please
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: point making problem

Postby Hblade » Tue Jan 26, 2010 6:36 pm

I've no idea, sorry :O
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: point making problem

Postby MrJolteon » Wed Jan 27, 2010 8:48 am

Turon wrote::? I may need to start over. I actually mean a point script thing.

[code][[code]PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1.000000, 1.000000, 0.000000, 1.000000)

How can I learn more about these?
Please

If you mean physical response, use specify, not calculated. Specify makes you not going through the platform if gravity is too high(highest gravity before that is 0.00000 or something like that)
Join us on Discord!
Game Editor 2
These are the best ways to reach me these days


Your local Community Janitor, always lurking in the shadows...
User avatar
MrJolteon
 
Posts: 2326
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stranded under endless sky
Score: 105 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron