Author Topic: Few questions about scrolling, coins and shot.  (Read 51 times)

Free_Eagle

  • Level 1: Bizz
  • *
  • Posts: 9
    • View Profile
Few questions about scrolling, coins and shot.
« on: May 18, 2023, 04:32:48 PM »
Hello, me again!
I have some questions, hope it's ok to post them in one topic.

1) Can the coin image be changed? For example, if I want to collect clover (or other stuff). I didn't find any tiles for that (Picture Money).
2) Is it possible to get a life for 100 coins (or clover in my case) and it starts again from 0? If yes, how?
3) Is it possible to change the HUD graphically. It doesn't fit my 8-bit style ;)
4) Is it possible to fix the scrolling in one direction? So only to the right (not up if i jump). And so with the character go over the screen, to get to a secret place like in Mario (warp zones)?
5) Jumping on the enemy kills him, but it also damages me (Character). Can this be changed? So just jumping on an enemy doesn't damage the character. Face to face damage is possible.
6) How can I turn off the automatic shot? A push on button is also one shot. Even if i stay longer.

Thanks so much for your help and time!


« Last Edit: May 21, 2023, 08:08:31 PM by Free_Eagle »
Sorry for my bad english...

Gizgord

  • average
  • Level 18: Statix
  • *
  • Posts: 819
    • View Profile
Re: Few questions about scrolling, coins and shot.
« Reply #1 on: May 23, 2023, 06:58:42 PM »
My answers won't be too specific, so I recommend you refer to the Command Prompt page. If you're not comfortable with using commands, check TingThing's tutorial. It may be a good idea to watch the entire playlist in general, it's a nice starting point: you may even learn some new things  C:-) O:-)
https://theplatformbuilder.com/command-prompt/

1. You can change coin sprites from the Items 2 sprite sheet, alternatively upload your graphic as a "Sprite" and replace default coins with custom items. This has other perks as well.
2. The easiest solution would be to change currencies from coins to stars. If this has to be money, you can add a conditional like this:
Code: [Select]
if money=100
{
money=0
//add whatever you want to happen
}
Best used with a custom item, as they have command prompts that can check for this only when they're collected. Adding this to a Looping command prompt would work fine, if not a bit wasteful. Looping prompts essentially repeat a set of commands every few frames.. so don't get too carried away or your game might get choppy  ;D
3. Yes, you can change most of the HUD with commands. I don't remember if anyone made a good tutorial/presentation... it would be useful because it's pretty clunky and unintuitive. I could guide you through that process if you want to deal with that.
4. Change scrolling settings from Loose to Fixed (I believe that's what they're called). The screen will stay fixed vertically.
5. What enemy are you using? Is it one of the default ones or is it custom?
6. Automatic isn't the default setting. I'm not sure what you mean by this, did you change th setting somewhere or do you want to limit the amount of bullets that can be on screen?

Free_Eagle

  • Level 1: Bizz
  • *
  • Posts: 9
    • View Profile
Re: Few questions about scrolling, coins and shot.
« Reply #2 on: May 25, 2023, 05:08:13 PM »
Thanks for the information! Gonna try them out (1-3). Must practice with the commands  ???
At point 4) I can't find any scrolling options. Only Character scrolling and automatic scrolling.
5) I have custom enemy (picture Enemy).
6) I collect 5 shots. Press shot, then 2-4 shots come at once. One after one would be better. Press shot is a shot, press shot is a shot.... The shot is sometimes right and sometimes over the character (Picture Shot). (i have changed it in the command (picture command)).

now I look at the video ;D
Sorry for my bad english...