Browse Search Popular Register Upload Rules User list Login:
Search:
Okay. And just as a general suggestion, the fewer control keys that you can make the game work with, the better. I'm an "older" guy who has trouble remembering all the control keys in a complex game. So, if the game has more than say 4 or 5 control keys to remember, it's a good practice to have a text box always in view which lists the control keys. If you don't do that, then the player will be forced to pause the game so they can look up the list of keys to press. Maybe others don't agree with that, but it's my personal opinion.

Okay, if you could let me know how you want the mouse click to operate, I will try to post a simple scene which demonstrates the function. After you had a chance to download it, I will delete it. I will title it: "For UDG04 test".

Now I need specific details about how you want the control key to work. For example:

* When player presses left mouse button while cursor is on laser, laser MaxRays will increase by 1.

Also let me know if you want rapid continuous increase (after a short delay) when left mouse button is HELD down. I need every detail so that it works exactly how you expect it to.
49 27 6d 20 77 61 74 63 68 69 6e 67 20 79 6f 75 20 74 6f 6f 21
Just to make sure I understand you....

You want a local variable named _laser in a box to be set to 1 when the left mouse button is pressed, then set to 0 when left mouse button is released. Also, you want the value (1 or 0) in _laser to be transferred to maxRays in the laser. Is that correct so far?

If that is correct, I'm wondering why not simply make left mouse button tied directly to maxRays instead of going through that local variable _laser? It would be much simpler.

EDIT: One more question: Do you want the laser to be attached to the box or separate? (that will determine the type of script I will use).

EDIT2: Here is the scene I created for you: For UDG04 test The laser can be attached to the box or separate. The code is the same. Hope it works the way you expected it to!

EDIT3: I just realized that I made another example scene for you back in September 2020. It had just a box and a laser too! :lol:
Last edited at 2022/06/21 05:30:07 by Xray
Decoded it says "I'll be watching you too!" :lol:
Great! I'm glad I was able to help. :tup:


Oh, and in case you haven't figured it out, it also works with "mouse_right" and "mouse_middle". There's also a script for mouse scroll wheel but I never was able to make it work, and I still don't know why.
Last edited at 2022/06/21 22:17:43 by Xray
No. The only mouse keys I know about are the ones I already mentioned. THIS is the actual mouse that I use on my desktop computer. (I know you've seen that scene before because you left a comment). :x
Last edited at 2022/06/22 03:22:23 by Xray
UDG04 -- Yup, that's the title!
Quote: "But how did you find my level?"

What do you mean "level"? Level of what? :huh:

Quote: "I’m surprised you did, and like that rules list"

Again, what are you talking about? :s

Quote: "Maybe you are a worker or something"

A worker? Yeah I work just like most other people. Are you asking about a specific kind of work? Sorry, but your questions are confusing and don't make any sense. Are you from another country besides America? :s
I died within a couple of seconds after pressing RUN. Is that impressive? :o
Well, it's a start. I'm sure it will become more intelligent and "crafty" as time goes on as you feed it with more neurons! lol

A couple of suggestions:
1. The way you did the "initializer" code is unusual to say the least. So, rather than put those 3 lines of script in upDate and then allow the box to die after one second, why not put those lines of script in any onSpawn of any object in the scene? That way the code will execute only once as the object gets spawned after the scene gets loaded into Algodoo, and you won't have to do anything weird like kill the object containing that code after some time period.
2. Initially, I couldn't tell the difference between the Player box and the NPC box. So why not make the Player box a different color or a different shape (or both)?

Other than those suggestions, you did a pretty good job on the game so far. I can't wait until you give the players actual personalities (if that's what you planned to do). :*)
Your monster is really creepy! :o

Good job! :tup:
Last edited at 2022/06/22 17:11:15 by Xray
Magic mushroom? :yum:
So, where is all the AI code located? I can see key handling, and velocity commands, but no actual AI "neurons" and other decision-making code usually associated with basic AI.
Occasionally the AI agent gets stuck between one of the text boxes and the ground plane (it oscillates up and down between the two). An easy fix is to remove collision layers from the boxes (the only two in each box I see are "A" and "Water").

Another thing you might consider is to keep the text box that lists the control keys in view at all times by having it follow the camera. You can do that by placing the following script in the box postStep event: pos = scene.camera.pan + [-10.0, 5.0] You can of course adjust the offsets in order to place the box where you want it during scene play. This doesn't compensate for camera zoom, and so you may need to add script that automatically adjusts things based on what the player does with it.
Last edited at 2022/06/22 21:48:39 by Xray
That's a great idea and it works very well! Good job! :tup:
Problem: After playing for a short time period (1 or 2 minutes) I lost all ability to control my player agent. Both it and the AI agent ended up on that pink pyramid and were just bobbing up and down! I don't know why that happened, if it was anything that I did wrong. :huh:

EDIT: The same thing happened again. It was when my player turned gray color I lost all control. Is it supposed to do that? :s
Last edited at 2022/06/23 00:02:15 by Xray
Just curious, where is the AI code located? I can't seem to find it.
Oh, Okay, now I understand it. For some dumb reason I was looking for neural network code which is quite different. (Duh!) :lol:

Thanks
Last edited at 2022/06/24 06:18:03 by Xray
I don't know. Try resetting Algodoo.
There's a bug in this game. After 2 or 3 successful key presses, the game locks up and does not allow any key presses for 20 or 30 seconds (or longer!). After that long delay, it allows only 1 or 2 more key presses and then locks up again!
Yes, it works good now. Good job! :tup:
Okay, good job. You won the grand prize!

What's the grand prize you ask? For the entire Summer, you get to mow my lawn, pull weeds, and wash my truck every day. Oh, and my wife says you can wash dirty dishes every day during that time period too. Hooray! You're a lucky dude! :lol:
Quote: "It only happens when I click on the user matto"

Question: Does it happen when you click his user name, or does it happen when you download and run any of his scenes? If we're going to figure this out, you must be very specific about what you do and what you see.
Others have done that too. Search for "trollface" and "troll face" and you will find other scenes that are similar to yours.
Last edited at 2022/06/27 03:56:30 by Xray
They are called "flippers". :)


Glossary_of_pinball_terms
Last edited at 2022/06/27 16:18:12 by Xray
"Ranig"?:s The correct spelling is "Raining".
I never heard of that problem, but the one thing I thought about is the fact that matto has a YT channel, and he posts many links to his videos in his scenes. So maybe your browser doesn't like those YT links for some reason and crashes.

You might try downloading the latest version of Algodoo from this website in case yours is corrupt. If that doesn't work, try switching to a different browser. For example, if you currently use Edge, try FireFox or Chrome. Other than those things, I don't know what else might cause that issue.

Sorry :(
Evan Hawco -- Could you be more specific? What happens if you create just 1 scene? Do you get an error message when you try to upload it? Please provide more details that will help me figure this out for you.
Evan Hawco -- Do you use the Algodoo built-in browser for uploading and downloading scenes? If you do, then my suggestion is to NOT use that anymore, but instead use a normal browser such as Chrome, Edge, or Firefox. You will have much better control and be able to use many more features that you don't have with the built-in browser.
Little - This user (Eli3102) uploaded only two scenes (this one and one other one) back in January 2020 and has not engaged in any activity here on Algobox since then. So, my guess is he's no longer interested in Algodoo. So, if you want me to delete the two scenes that contain batteries that he copied from you, please let me know and I will take care of that.

Thanks,
Xray
previous | 1 … 317 318 319 320 321 … 442 | next