Can I delete my user
No. But we can. In the first instance please send a chat message to one of the users marked with the "Fuze Team" tag. Obviously we'd be keen to know why, whether there is something that has gone wrong that perhaps we can correct, but ultimately if you really want to leave then we can do this for you. All your post content will remain but will be given the username "A Former User" this is so that we are not left with half a conversation and forum topics that make no sense.
Can I rename my user?
No, but again, we can do this for you. Please note that as per when you initially joined user names must be 6 characters or more and must be unique. We cannot circumvent this even if we want to.
But I see users with names less than 6 characters, what gives?
The keen eyed amongst you might indeed spot just a few forum members with names less than 6 characters. Dave, Kat and Luke are members of the team that bring you Fuze. How mean would we be if we did not allow them this small privilege? They were of course also among the very first few forum users to be created while the site was in early access testing and before we had decided on how we were going to do things. The rest of us happened to choose or have names that fit anyway.
Some posts have code in nice coloured blocks - how do I do that?
You need to surround your code text with three 'back-ticks' or `
You can do this manually, or by clicking the little icon from the full reply editor that looks like this "</>"
Can I link to external sites
Fuze Arena is primarily a site for Fuze, therefore, due to the admin overhead involved in checking the content within external sites and ensuring content is suitable for all ages we have taken the decision at this time to not approve posts that link to external sites. Please note, if you do this then your post will be removed without notice. The two exceptions to this rule are Twitter and YouTube because you can of course link to Fuze content on each of these. Please help us by restricting your links to Fuze content. Thank you for your understanding on this matter.
One very useful function that they do not mention in these tutorials is,
This will detect a collision and return true if the specified sprites are colliding.
If you have trouble with the collision boxes then use this function,
@AlexTheNewCoder Although it might be a little advanced for the things you are used to at the moment, @Devieus makes a good point and it gave me the motivation to make a menu system program which uses states. You can find it at this post:
Don't worry if it's confusing at first. It might be a fun experience to figure it out and try to add to it! If you can get your head around it, this sort of technique is unbelivably useful in many applications. I actually also touch on it in the video I linked before - but the states in that program are for the sprite animation. In this system, the states are for the current page of the menu we're looking at. As you can see - it's a versatile technique!
Here's a function you could copy into a project and use to draw a customisable health/stamina/mana bar! I did something similar in a game "Subs 2" @SteveZX81 and I worked on. It even has an easy colour changing effect as the bar changes size, which is really easy to customise too!
function drawBar(x, y, width, height, value, maxValue, colourEmpty, colourFull)
w = width/maxValue * value
t = w/width
col = interpolate(ease_in_out, colourEmpty, colourFull, t)
box(x, y, w, height, col, false)
With this in your program somewhere (make sure it's outside your main loop, this is a function definition and must be outside other loops/function definitions), you can simply call it and draw a hud bar anywhere on screen. We just need to pass it the values we want to use. For example, here it is in a simple program:
// Some health variables to use for the length of the bar
maxHealth = 20
health = maxHealth
// Call our function, draw a bar at screen location (100, 100), with a maximum width of 300 pixels, height of 50 pixels:
drawBar(100, 100, 300, 50, health, maxHealth, red, lime)
// Decrease the health variable to show the bar reducing and changing coour
health -= 0.1
// Limit the variable so it stops at 0
health = max(health, 0)
You could call that function with any set of variables, doesn't have to be health! If you had maxStamina and stamina variables, they would also work and you could use different colours, for example:
// Draw a bar at screen location (50, 50) with max width of 250 pixels, height of 50 pixels colour shifting from yellow to gold (very subtle, looks quite nice!)
drawBar(50, 50, 250, 50, stamina, maxStamina, gold, yellow)
@devieus wow, I didn't know about the 5 seconds cooldown. I guess I could read the whole game file and construct the string to do just one write as you said. I will think about it. Thank you very much!
That would be collideMap(yourSprite), in the simplest case. That will move yourSprite out of the way of any collision zones of your map.
Depending on your game, you will need to do additional work. If you keep the desired location of your character in a variable, you need to read it out post-collision with getSpriteLocation().
If your character is supposed to have momentum/velocity, that is if it's not instantly stopping if you center the stick, you'll need to understand and use the returned data of collideMap and use it to modify the velocity so that further movement does not drive you further into the collision zones. Or maybe you want to bounce off walls. That is all
, very hard to explain in a vacuum and you probably don't need it at first.