Page 1 of 1

point making problem

PostPosted: Mon Jan 25, 2010 1:30 pm
by Turon
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: .

Re: point making problem

PostPosted: Mon Jan 25, 2010 3:36 pm
by Hblade
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

Re: point making problem

PostPosted: Mon Jan 25, 2010 5:14 pm
by Turon
No thanks not like that i have done that before i mean you collide with an object and your character suffers temporal change :)

Re: point making problem

PostPosted: Mon Jan 25, 2010 6:13 pm
by Hblade
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

Re: point making problem

PostPosted: Tue Jan 26, 2010 5:17 am
by Turon
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:

Re: point making problem

PostPosted: Tue Jan 26, 2010 3:37 pm
by Hblade
I still dont get what you mean lol.

Re: point making problem

PostPosted: Tue Jan 26, 2010 4:17 pm
by Turon
:? 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

Re: point making problem

PostPosted: Tue Jan 26, 2010 6:36 pm
by Hblade
I've no idea, sorry :O

Re: point making problem

PostPosted: Wed Jan 27, 2010 8:48 am
by MrJolteon
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)