Change player sprite from global selection

Ideas and discussion about publishing and distributing your games

Post » Sat Sep 27, 2014 4:58 pm

Hi,

I have another problem..

I have build one inventory, one user can select the space ship...

Like 1, 2 etc..

If the user select space-ship 2
i want to give the player sprite the "sprite player"
from the global selection space-ship=2

Is this possible?



Thank you!
B
10
S
2
Posts: 28
Reputation: 630

Post » Sat Sep 27, 2014 6:03 pm

Solved fast!

I have put one global variable ship (number)

if ship number=1 exec action for ship 1

Fast copy and paste the action and put variables references to ship number...

Use this method is fast and if you have many player sprite to use can fast
add global variable for vehicle, for ship or other sprite you use..

global variable=> playercar=1

if player car=1
do what you want

if player car=2
etc...etc..
B
10
S
2
Posts: 28
Reputation: 630

Post » Thu Dec 11, 2014 10:45 pm

Work!
B
10
S
2
Posts: 28
Reputation: 630


Return to Distribution and Publishing

Who is online

Users browsing this forum: No registered users and 0 guests