4.5.6 tile that will change player atrabutes on contact

Logana

Well-known member
I had an idea for a sorta underwater level in my byte off game and the way I figured would work for the water is when you hit the tile it will change your jumps speed ,acceleration, movement speeds and if possible animation speed but that’s not really necessary, I don’t have any background on code and have no idea how to start with something like that so that is why I am here on the forums
 

mouse spirit

Well-known member
I would make some variables.(totalspeed,rampspeed,playerspeed)
Rampspeed(tile)+playerspeed=totalspeed
When not on tile,playerspeed=totalspeed

Ofcourse this is vague but its a start.
This would be for a combined speed of a ramp and player.
But we could be simpler and just have 1 variable.
The players speed
(xspeed or yspeed does need to be specified in all of these examples,im just being simple)So we will say
Playerxspeed.
The players actual xspeed = Playerxspeed
When on ramp tile, playerxspeed=3
When on water tile,playerxspeed=1
 

Logana

Well-known member
Okay, one question how would you make a variable also I have about a weeks time befor I can go back into the code because my computer is in a shop because it keeps on deleting everything
 
Top Bottom