November 30, 2020, 01:56:22 AM

Author Topic: Text Input - return to top of user interface  (Read 1324 times)

Offline 3DzForMe

  • Hero Member
  • *****
  • Posts: 1136
Text Input - return to top of user interface
« on: February 16, 2019, 12:06:58 PM »
In blitz basic, after detecting a carriage return (i.e. go north) , how'd you get the text entry field to go to the top....

Offline 3DzForMe

  • Hero Member
  • *****
  • Posts: 1136
Re: Text Input - return to top of user interface
« Reply #1 on: February 16, 2019, 12:13:50 PM »
think I found a resolution, this is easier syntactically than zxBasic... I think ;) Its been a while since using pure zxbasic....

https://www.blitzcoder.org/forum/topic.php?id=125


Offline 3DzForMe

  • Hero Member
  • *****
  • Posts: 1136
Re: Text Input - return to top of user interface
« Reply #2 on: February 16, 2019, 12:20:56 PM »
Screen grab of code in action.... happy coding dayz ;)

Offline MrmediamanX

  • Full Member
  • ***
  • Posts: 242
    • 3MX Digital
Re: Text Input - return to top of user interface
« Reply #3 on: February 16, 2019, 12:21:54 PM »
strings,arrays,dims ... a bit daunting for me personally, I usually go with an over the top fantasy options menu for the most part when dealing with things such as this ... it requires some lateral thinking and pre management, but seem's function ok for the most part .... always with the unorthodox approach,totally my style. 8)

Offline 3DzForMe

  • Hero Member
  • *****
  • Posts: 1136
Re: Text Input - return to top of user interface
« Reply #4 on: February 16, 2019, 12:38:49 PM »
Quote
strings,arrays,dims ... a bit daunting for me personally,

Yeah... grinding from array, to trying Object Oriented stuff (which was too much of a stretch, I like to design on a fag packet, or more to the point on an area inside my brain which equates to an area the size of a fag packet)

So using an array with a binary element to it to signify the N,S,E and W components worked best for me. Didn't helped at first that I was getting my easts and wests mixed up between rooms, thinking, whty the hell isn't this working!

Bugs are half the fun... or maybe not  :o 8) :D ;D

Offline 3DzForMe

  • Hero Member
  • *****
  • Posts: 1136
Re: Text Input - return to top of user interface
« Reply #5 on: February 16, 2019, 12:49:06 PM »
Well not lost the old speccy syntax yet:

https://jsspeccy.zxdemo.org/

I had a ZX Spectrum+ keyboard that I shoe horned my speccys innards into ;)




Offline MrmediamanX

  • Full Member
  • ***
  • Posts: 242
    • 3MX Digital
Re: Text Input - return to top of user interface
« Reply #6 on: February 16, 2019, 12:58:37 PM »
True ... breaking things down to it's most simplest format always works for me.
approaching the mechanics from a first person view [ie] UP,DOWN,LEFT,RIGHT replacing N,S,E,W unless applying a +1 to a step variable or counter ... from there pretty much any event can be added on.

I may have a go at something like this after the comp, maybe make little game akin myst but with more typing and puzzles I guess. 

Offline 3DzForMe

  • Hero Member
  • *****
  • Posts: 1136
Re: Text Input - return to top of user interface
« Reply #7 on: February 16, 2019, 01:50:42 PM »
I think I'll probably release my code after the competition warts and all, heck why not?

It'll be a framework folks can use to make their own adventures - other stuff like this probably exists - but it'll give blitz basic another bit of exposure.

I've been coding for roughly another 3 hours solid on this - crazy - but quite gratifying. These competitions are great for re-invigorating the old coding spirit.

Offline MrmediamanX

  • Full Member
  • ***
  • Posts: 242
    • 3MX Digital
Re: Text Input - return to top of user interface
« Reply #8 on: February 16, 2019, 02:02:26 PM »
I think I'll probably release my code after the competition warts and all, heck why not?

It'll be a framework folks can use to make their own adventures - other stuff like this probably exists - but it'll give blitz basic another bit of exposure.

I've been coding for roughly another 3 hours solid on this - crazy - but quite gratifying. These competitions are great for re-invigorating the old coding spirit.

amen to that.
i'll do the same granted I have a few engines and what not up already.

Offline 3DzForMe

  • Hero Member
  • *****
  • Posts: 1136
Re: Text Input - return to top of user interface
« Reply #9 on: February 16, 2019, 02:16:14 PM »
Oh my, that Really appeals to me. Awesome work, Blitz 3D I presume? [Edit -- The clues in the title, missed that first time around] Note, I'm not assuming coz we all know it makes an ass out of .......

The hand teasing the musical raining blocks out, kool and the gang.

Offline MrmediamanX

  • Full Member
  • ***
  • Posts: 242
    • 3MX Digital
Re: Text Input - return to top of user interface
« Reply #10 on: February 17, 2019, 10:55:42 AM »
Pretty neat  emulator. :)

Offline 3DzForMe

  • Hero Member
  • *****
  • Posts: 1136
Re: Text Input - return to top of user interface
« Reply #11 on: February 23, 2019, 10:31:14 AM »
Yeah, that is a great example of good user interface design. The little candle on the left is brilliant.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal