Subtract private variable and convert to integer

For questions about using Classic.

Post » Sun Feb 15, 2015 9:58 am

How can I do that? I already did this and still can't figure it out. When the player is overlapping by the zombie Just subtract private variable "Health" by 33*timedelta. And how can I convert it to integer? Or is just my mistake?

Image

And the result: (At the "Health: ")

Image
B
4
S
1
Posts: 14
Reputation: 378

Post » Mon Feb 16, 2015 4:53 am

Answer me please!!
B
4
S
1
Posts: 14
Reputation: 378

Post » Mon Feb 16, 2015 8:39 am

There are many ways: why not try

round(33*TimeDelta)
If your vision so exceeds your ability, then look to something closer.
Moderator
B
122
S
29
G
70
Posts: 4,910
Reputation: 49,506

Post » Mon Feb 16, 2015 2:47 pm

Doesn't work.
B
4
S
1
Posts: 14
Reputation: 378

Post » Mon Feb 16, 2015 3:28 pm

Did for me.

https://dl.dropboxusercontent.com/u/34306693/galaxian.cap

Look at last two events.

Is this what you mean?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
122
S
29
G
70
Posts: 4,910
Reputation: 49,506

Post » Tue Feb 17, 2015 1:29 am

I did EXACTLY what you did. Still doesn't work for me.
B
4
S
1
Posts: 14
Reputation: 378

Post » Tue Feb 17, 2015 8:13 am

Then unless you show your work, there's nothing we can do.

There must be something else interfering with the events, or some other error, but without seeing it, we will never know.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
122
S
29
G
70
Posts: 4,910
Reputation: 49,506


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests