Search found 22 matches
- Sat Jan 11, 2014 3:43 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: adding sound not working
- Replies: 3
- Views: 2494
adding sound not working
I am trying to add background music which can be stopped and played by the player in the game i am creating. I googled how to do it and added the following example code to a button: on mouseUp play audioClip "/Users/davidwilliams/desktop/audiolesson/hello.wav" end mouseUp When i substituted in my st...
- Sat Jan 11, 2014 2:59 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Delete this post please
- Replies: 3
- Views: 2509
Delete this post please
i want to delete this post
- Mon Dec 23, 2013 8:57 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: detecting gaps inbetween - creating game
- Replies: 15
- Views: 9051
Re: detecting gaps inbetween - creating game
This sounds like a side-scroller game, where the character does not move but the background does. I think the easiest way is to use the "within" function to determine whether the character overlaps either of the images. You'll need to decide whether you want to count only the center of the characte...
- Thu Dec 19, 2013 4:23 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: detecting gaps inbetween - creating game
- Replies: 15
- Views: 9051
Re: detecting gaps inbetween - creating game
yes, that is exactly it but im unsure how to code it, I have tried different methods but my coding is not right and i keep getting different error messages...
- Thu Dec 19, 2013 3:04 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: detecting gaps inbetween - creating game
- Replies: 15
- Views: 9051
Re: detecting gaps inbetween - creating game
For my background the images are positioned and locked in place as i want them, leaving small gaps in between (for the character to fall into) i have the code working for the images to move across the card continuously. I don't want the character to move forward or anything, just up and back down wh...
- Thu Dec 19, 2013 3:37 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: detecting gaps inbetween - creating game
- Replies: 15
- Views: 9051
Re: detecting gaps inbetween - creating game
yes, that is the code i tried and it didn't work out as expected. i could replace the "stopGame" with anything later on.. my main focus is getting the "character" to disappear once it detects the gaps somehow...I see no where round this, it seems impossible :( the character is self is not moving at ...
- Wed Dec 18, 2013 11:23 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: detecting gaps inbetween - creating game
- Replies: 15
- Views: 9051
Re: detecting gaps inbetween - creating game
ahh okay.. i think there needs to be something in between.. because that line of code if i take out the hide character and replace it with stopGame(already coded for) then the entire thing just stops..
- Wed Dec 18, 2013 10:27 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: detecting gaps inbetween - creating game
- Replies: 15
- Views: 9051
detecting gaps inbetween - creating game
So i have the background scrolling along the card with gaps in between, and the character is to jump over the gaps. My problem is that at the moment, nothing happens if the character goes over the gaps, I am wanting to code so that it will fall off/disappear the card. I have a rough idea where i am ...
- Mon Dec 16, 2013 8:15 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: creating game - moving enemy
- Replies: 11
- Views: 7825
Re: creating game - moving enemy
You could simply add a timer. When the box goes off the end of the screen, store the time (the seconds) into a global. Then do not move the box again until 20 seconds have passed. on moveEnemy global gTime if the seconds-gTime > 20 then show button “box” set the left of button "box" to the left of ...
- Sat Dec 14, 2013 1:04 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: I want to delete this post
- Replies: 2
- Views: 2308
I want to delete this post
I want to delete this post
- Fri Dec 13, 2013 11:26 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: creating game - moving enemy
- Replies: 11
- Views: 7825
Re: creating game - moving enemy
this is what i have so far when the game is running on moveEnemy set the left of button "box" to the left of button "box" + 5 if the left of button "box" > the right of card id"1003" then set the left of button "box" to the left of card id"1003" end if end moveEnemy the box being the enemy
- Fri Dec 13, 2013 9:44 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: creating game - moving enemy
- Replies: 11
- Views: 7825
creating game - moving enemy
I am wanting the enemy to appear at random times. At the moment it is a bird continuously moving across the card. I am wanting it to wait for atleast 20 seconds before appearing again and moving across the card. I am some ideas how to code this but am not entirely sure how exactly
thanks
thanks
- Fri Dec 13, 2013 9:40 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: scrolling background with gaps
- Replies: 14
- Views: 9326
Re: scrolling background with gaps
Thanks everyone for your help somehow got it to work..not exactly as i hoped, but it works.
- Tue Dec 10, 2013 6:58 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: scrolling background with gaps
- Replies: 14
- Views: 9326
Re: scrolling background with gaps
Im so lost and confused what to do..also the fact it must have gaps in between the images and that is the main problem..it wont display they gaps and overlaps each other instead :/
- Tue Dec 10, 2013 12:43 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: scrolling background with gaps
- Replies: 14
- Views: 9326
Re: scrolling background with gaps
Yeah the lock size and position box is ticked on all the images