I want to add nice background music to my Lua project.
But I can’t figure out how to do it.
I tried like it this
true = audio.playbg(/Documents/source/sound/ActionMusic.Mp3,boolean,0.3,0.0)
I expected to have action background music (ActionMusic.mp3) that repeats when over with 30% volume and sound from both speakers
Related
I am trying to make a copy of the popular browser game Travian.com. I am currently working on the maps and I was able to get the farms overview image as a png.
What I am trying to accomplish with that map is:
Each element (farm) should be clickable) and redirect to that specific farm page.
As you could see on the map, farms are not just simple squares.
Once I had the farms.png picture, I used on online tool to convert a png into a .svg file. Using a free software, I was able to draw circles around each map to build my svg.
This is the result:
I recently read about canvas and I was wondering if canvas would be a better option in my case rather using svg?
You need to try it yourself and see if it gets redrawn quickly enough that the game is sufficiently responsive for you. If the map is very detailed, the redraw may be too slow and make your game feel slow. You really need to try it and see. If it's too slow for you, then you may need to either:
use bitmap images, or
keep the maps as SVGs, but render them to a Canvas on first load. This way they'll be sharp at whatever resolution screen the user has.
I'm wondering if it's possible to input a bunch of songs into Magenta and get an output that mimics those songs using AI (something that I feel like Magenta should be able to do).
For example, I could input a bunch of Beatles songs and get a song that sounds something like they would play.
Is this possible? Would it generate the lyrics and the song title?
Hello i recently started to study Phaser and i have came to a problem witch i need help with solving.
I created a 3 layer map with Tiled. SkyLayer, GroundLayer, BrickLayer. I added physics that allow the player to move around the GroundLayer. I also added physics that allow him to jump on the BrickLayer. I am struggling to make a motion that allows the player to jump from the bottom hit the brick with his head, when he hits his head the motion of the brick to move up a pixel and then back down a pixel just as in Mario. I have trouble finding out how to identify which brick section i have hit from the BrickLayer so i can later on apply the animation to the brick element.
Simple Layers itself contains only tiles, which has no any animation.
If you need something to have animation, you need to use object layer and convert its objects to sprites with TileMap.createFromObjects.
I am working on an Arduino toy (using Uno). When people press the Force Sensitive Resistor, it triggers the .wav audio which is played by the TMPpcm library.
However, I realized once the audio is played the analogread from the FSR got messed up.
(the value on the FSR no longer goes back to 0, instead, it's stuck with some numbers.
I tried to set it back to 0 at the end of the function. didn't work.)
also tried with digitalread with thick buttons, it's fine. But I really would love to use the thin FSR so I can put it in papers.
Any thought?
Thanks a lot!!
Put a resistor from the positive side of the "button" to ground. Should pull the value down to zero.
I'm creating a app in Unity which is quite text heavy. So far, all the text is handled through the OnGUI function. I think I'm going to run into problems later on.
So, is it possible to create text, (using true type fonts, not 3D text or bitmaps. Not using something from the assets store either!) without using OnGUI? If so, how do you make each of the text filds independent with different styles, positions & parents?
Check the AssetStore for 2D toolkit or NGui plugin, they are both great for Ui stuff
they contain nice ways to do gradients, fonts, and aligning to screen edges or parent handles
Another option would be Daikonforge:
http://www.daikonforge.com/dfgui/
The company I work for released a game using NGUI, not long ago, but we are switching to Daikonforge now, because it's deemed more Artist-friendly than NGUI.