Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Quick Question

Well, I just got RPGVX friday and Im curios about RGSS2
I know little abt computer or scripting but the thing im trying to do(and failing miserably at it) is this(Im not in my pc to copy the script so ill just put the main idea):
First it draws the main window then another two for keyboard arrows with position x as 0.
Then in the Scene I put sth like this
@ArrowUP = rand(4)  #Is not for the x position but to get a random number so the arrows will display in a random order(Agh, my english sucks..)
case @ArrowUP
when 1
  @arrowupwind.x= 20
when 2
  @arrowupwind.x=40
blablabla
Well I make the same thing for the other arrows and it works, it draws the arros in the main window at random but the thing is that the arrows sometimes get over each other. I tried to make a loop(taking an example from the help section of VX) but evrything freezes. I guess Im not closing the loop correctly.
Well If there is keep this from happening I would like to now  :dead: or maybe a better way to do it cause Im sure mine is way too lame  :lol:
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top