Coder Social home page Coder Social logo

Comments (22)

zartan9 avatar zartan9 commented on July 26, 2024 1

so if i want 3 or 4 options do i set them to if else/ else/ else?
i still see "character name"

from blocklyvn8bit.

zartan9 avatar zartan9 commented on July 26, 2024 1

hi ok so im confusing myself! whats great about your software is the visual blocks which help me learn, can you post a screen shot of how a working example looks (so player can have like 3 choices within a menu) thank you..

from blocklyvn8bit.

zartan9 avatar zartan9 commented on July 26, 2024 1

hm4
hi thanks yes NES would be fun addition. OK, please correct me i have character named "information" before menu, but doesnt show up (yet).. thanks...

from blocklyvn8bit.

zartan9 avatar zartan9 commented on July 26, 2024 1

hi is there a limit of images(in the editor?) I can seem to scroll to get to the other photos in the bg folder from editr)
thanks
choices2

from blocklyvn8bit.

zartan9 avatar zartan9 commented on July 26, 2024 1

from blocklyvn8bit.

haroldo-ok avatar haroldo-ok commented on July 26, 2024

Hello, you are trying to create a new block with the functionality you need, or just trying to use an existing block?

from blocklyvn8bit.

zartan9 avatar zartan9 commented on July 26, 2024

hi here is how it looks now... Im also doing something else wrong because the other choices 3 and 5 dont seem to work when i press the numbers 3 / 5...

choices

from blocklyvn8bit.

haroldo-ok avatar haroldo-ok commented on July 26, 2024

Since "choices" is a numeric variable, it can only have a single value, so, if you set it to 3, then set it to 5, it will always keep the last value you set, so, in the example above:

set choices to 3
set choices to 5
if choices = 3:
    say "go on"
if choices = 5:
    say "go on2"

In the example above, it will always say "go on2", because it will set "choices" to 3, then, without doing anything else, it will set "choices" do 5, and only then it will execute the two "ifs "; since "choices" will be 5 by the time the "ifs" are reached, only the expression from the second if will be evaluated as true.

from blocklyvn8bit.

haroldo-ok avatar haroldo-ok commented on July 26, 2024

Every menu option must be added inside the "menu" block. If you want to have 3 or 4 options, they will have to be added inside the "menu" block; you can combine them with if/else, if you want, but this if/else also has to be inside the menu block.

You have to set the character name before calling the menu, or else, it will use the last character name that was used, wich means that if you didn't call the "character" block even once before opening the menu, it will use the default value, which is, literally, "character name"

from blocklyvn8bit.

haroldo-ok avatar haroldo-ok commented on July 26, 2024

Okay, I will try to make an example later.

from blocklyvn8bit.

haroldo-ok avatar haroldo-ok commented on July 26, 2024

Okay, here's an example with 5 menu options.

image

from blocklyvn8bit.

zartan9 avatar zartan9 commented on July 26, 2024

from blocklyvn8bit.

zartan9 avatar zartan9 commented on July 26, 2024

hi thank you it's working! still not sure where to define character name (have another graphic screenshot) but i have a start now.. i mayve mentioned this but a suggestion is not have the options black box take up the whole width.
PS any plans for NES (as unity 8bit does that) anyway i like your software I will keep exploring :)
hm3

from blocklyvn8bit.

haroldo-ok avatar haroldo-ok commented on July 26, 2024

Hello,

In order to set the character name, you have to add the "Character" block before the menu.

As for NES, good call, I didn't notice they had added support for that platform
#23

from blocklyvn8bit.

haroldo-ok avatar haroldo-ok commented on July 26, 2024

Interesting... there really seems to be a bug with the character name block; it should be updating the name, but isn't...

from blocklyvn8bit.

zartan9 avatar zartan9 commented on July 26, 2024

got it. keep up the nice work! Ill keep exploring the engine :)

from blocklyvn8bit.

haroldo-ok avatar haroldo-ok commented on July 26, 2024

Hello, again;
No,there is no limit of images in the editor, but there does seem to be a bug where the image selection pop-up isn't correctly handling the large amount of options...

from blocklyvn8bit.

zartan9 avatar zartan9 commented on July 26, 2024

yes sir! I keep lookin fwd to updates as your engine is easy to use :) thanks!

from blocklyvn8bit.

haroldo-ok avatar haroldo-ok commented on July 26, 2024

Hello, again, I fixed the bug with the image list:

image

You can get the new version from here:
https://github.com/haroldo-ok/BlocklyVN8bit/releases/download/v0.2.3/BlocklyVN8bit-0.2.3.7z

from blocklyvn8bit.

zartan9 avatar zartan9 commented on July 26, 2024

from blocklyvn8bit.

haroldo-ok avatar haroldo-ok commented on July 26, 2024

Okay, the character name bug has been fixed, too:
https://github.com/haroldo-ok/BlocklyVN8bit/releases/tag/v0.2.5

from blocklyvn8bit.

zartan9 avatar zartan9 commented on July 26, 2024

from blocklyvn8bit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.