Help creating a reload for a gun :D

For questions about using Classic.

Post » Sun Jun 20, 2010 9:04 pm

Ohhh good idea!
much appreciated :D
B
2
S
2
G
3
Posts: 140
Reputation: 1,530

Post » Mon Jun 21, 2010 6:45 am

Of course if you need to do real reload system: press "R" wait 5 sec then mag is full is a bit more complex needing 2 PVs (except if someone has better idea how to do it) In short:

Press R set pv1 to 1

When pv1 is 1
Every 500 MS
>add 1 to pv2

When pv2 is 5000
>Set pv1 to 0
>Set pv2 to 0
>Set bullet (pv too) to lets say 30

I've been wondering is there an easier way of doing? (Not counting just modified version where you eliminate pv2 by adding bullets) oh and ofc you prevent shooting when reloading (by having cond= pv1 is 0)
B
11
S
3
G
4
Posts: 622
Reputation: 3,186

Post » Thu Jun 24, 2010 11:57 am

That's fairly simple Sagal. Presumably you want it so that it reloads bullet by bullet, but the player can interrupt the reloading by shooting, using on of the reloaded bullets?

So yeah, 2 pvs - 1 : isReloading, 2 : currentBullets

easy business :D
B
2
S
2
G
5
Posts: 448
Reputation: 2,546

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests