Hi
I’m making an endless runner game and I’m having a problem with ‘changing sprites in game’
For example: When I reach 2000 score, the main character will turn from a human to a vampire.
“He” will unlock/have different abilities upon changes.
Besides that, how can i change the lightning of the environment (day/night) along with the background?
it’s my first day using Gdevelop so my questions may seem dumb
Light is not in GD5. You can change the color of all your sprites or put a dark transparent sprite over the whole screen to get a ‘night’ effect.
As for changing the player character: just delete the old one and create the new one at his old position.
I want to change character in mid-game too. but i want to it with button instead points.
i also want be able to change back to the first character.
my head is a mess and i dont understand variables.
sequence. order. sorry, I doesn’t speak english. the point is, you can’t create an object at another , if you deleted that. so, first create the new, ant after that delete the old.
hmm problem persist. your tip on slimply create player2 and destroy player1 WORKED
player1 have one attack and player2 have another.
and i thought for myself, i want to reverse it, being able to switch character whenever i want.
button a for switch to player2 button d to switch to player1.
but… but when i create player1 again and destroy player2 he respawn under the floor and falls off the screen.
what can be wrong?