best way to upgrade an actor (like a car) with images
-Timo-
Member Posts: 2,313
hey guys,
I'm making a game where you can upgrade a few things on an actor. you can upgrade his strength, his fuel, his speed and more...
I also want it to have a new image. what is the best way to do this?
-really make all possible images
-add an actor and constrain his x and y to the actor
hope I explained enough
I'm making a game where you can upgrade a few things on an actor. you can upgrade his strength, his fuel, his speed and more...
I also want it to have a new image. what is the best way to do this?
-really make all possible images
-add an actor and constrain his x and y to the actor
hope I explained enough
Comments
touch is pressed
Change attribute game."upgrade" to game."upgrade" +1
If game upgrade = 1
change image to (what ever you want)
If game upgrade = 2
change image to (what ever you want)
If game upgrade = 3
change image to (what ever you want)
Do the same for speed, fuel, life etc etc etc
I will try to explain better
you have an actor. the actor is a car.
you have to drive and earn money.
if you die you can upgrade stuff like fuel, strength, speed and more.
all of the upgrades can be upgraded to 5. if strength is 1 its dirty car. when its 5 its clean (every upgrade less dirty)
if speed is 1 the roof is closed, when its 5 its open(like a race car).
but when strength is 3 and speed is 1 the image is different then when strength is 5 and speed 2
so you have a lot of variation in images when you do it this way...
the other way is to constrain a other actors position to the roof from the car and every time you upgrade speed the image of the roof changes...
the only problem is that this is a bit laggy...
is there any other better solution? or what do you thinks is best to do?
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Just make sure you know what you want.
The solution described you will need 5Speed x 5Fuel x 5Stength images = 125 individual images.
So for each of the values you need a rule saying.
If
strength = 1
Fuel = 1
Speed = 1
The change image to (whatever you want)
If
strength = 2
Fuel = 1
Speed = 1
The change image to (whatever you want)
If
strength = 3
Fuel = 1
Speed = 1
The change image to (whatever you want)
this should be done in a table - but you will still need all the images to have the exact value of each possibility
Changing the values is the original solution I gave you in the first post
so I have to make a lot of images ok thanks
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
but what I'm doing know works good and doesn't need a lot pictures
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮