Search found 16 matches
- Sat Nov 30, 2019 2:41 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How do I make a "if key press space or up or w key" kind of statement?
- Replies: 29
- Views: 23847
Re: How do I make a "if key press space or up or w key" kind of statement?
Hi Starpat,
the message "rawkweydown" returns a NUMBER (the keycode of the pressed key) and not its "value"!
So take another look at Richmonds script and try again.
Hint: Really no need to QUOTE numbers!
...
switch RAWK
case 32
## put "SPACE" into fld "fKEE"
## Do your thing here when user ...
- Sat Nov 30, 2019 12:47 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How do I make a "if key press space or up or w key" kind of statement?
- Replies: 29
- Views: 23847
Re: How do I make a "if key press space or up or w key" kind of statement?
No, it doesn't match the code in your game.
If I sorted your game out for you it would be my game. 8)
But with a bit of lateral thinking, you can use my code to help you with yours. :D
I tried but it just didn't work here's a screenshot.
Capture.PNG
Another screenshot ...
- Sat Nov 30, 2019 11:51 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How do I make a "if key press space or up or w key" kind of statement?
- Replies: 29
- Views: 23847
- Fri Nov 29, 2019 5:38 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Main stack wont show?!
- Replies: 23
- Views: 27195
Re: Main stack wont show?!
No worries it works now and my stack shows now. I just had to click Send window to back in the windows menu.
- Fri Nov 29, 2019 5:36 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How do I make a "if key press space or up or w key" kind of statement?
- Replies: 29
- Views: 23847
Re: How do I make a "if key press space or up or w key" kind of statement?
Sorry, I got distracted last night.
on rawKeyDown RAWK
put empty into fld "fKEE"
switch RAWK
case "32"
put "SPACE" into fld "fKEE"
break
case "119"
put "w" into fld "fKEE"
break
case "65362"
put "UP" into fld "fKEE"
break
default
pass rawKeyDown
end switch
end rawKeyDown
but ...
- Fri Nov 29, 2019 5:32 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How do I make a "if key press space or up or w key" kind of statement?
- Replies: 29
- Views: 23847
Re: How do I make a "if key press space or up or w key" kind of statement?
so ur calling me 12.richmond62 wrote: Fri Nov 29, 2019 2:49 pm That was a half-finished thing of mine designed to make my 9-12 year old victims
suffer: there were meant to read the code!
The map is ripped-off from battle for Wesnoth.![]()
https://www.wesnoth.org/
- Fri Nov 29, 2019 5:25 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How do I make a "if key press space or up or w key" kind of statement?
- Replies: 29
- Views: 23847
Re: How do I make a "if key press space or up or w key" kind of statement?
how do i put in image please too :|
ksnip_attachFiles.png
Once you've done the above steps, place the cursor where you want the picture to show up in the reply and click the "Place inline" button :D
Yes, but only after you have at least 10 postings!
So in your next (but one) posting you can ...
- Thu Nov 28, 2019 8:20 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How do I make a "if key press space or up or w key" kind of statement?
- Replies: 29
- Views: 23847
Re: How do I make a "if key press space or up or w key" kind of statement?
local birdDirection
local birdVerticalSpeed
local gameIsRunning
local citySpeed
on preOpenCard
put 1 into birdDirection
put 4 into birdVerticalSpeed
put 3 into citySpeed
end preOpenCard
on startGame
preOpenCard
put true into gameIsRunning
flapBird
end startGame
on stopGame
put false into ...
local birdVerticalSpeed
local gameIsRunning
local citySpeed
on preOpenCard
put 1 into birdDirection
put 4 into birdVerticalSpeed
put 3 into citySpeed
end preOpenCard
on startGame
preOpenCard
put true into gameIsRunning
flapBird
end startGame
on stopGame
put false into ...
- Thu Nov 28, 2019 7:59 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How do I make a "if key press space or up or w key" kind of statement?
- Replies: 29
- Views: 23847
- Thu Nov 28, 2019 7:22 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How do I make a "if key press space or up or w key" kind of statement?
- Replies: 29
- Views: 23847
How do I make a "if key press space or up or w key" kind of statement?
on keyDown theKey
if theKey is space then
put -1 into birdDirection
end if
end keyDown
Hello! :D I have a question. What if in the code I want to put a "if key space or key up or key w" how do I do that? Sorry If I'm a newbie but please help me please. I'm making a flappy bird game following a ...
if theKey is space then
put -1 into birdDirection
end if
end keyDown
Hello! :D I have a question. What if in the code I want to put a "if key space or key up or key w" how do I do that? Sorry If I'm a newbie but please help me please. I'm making a flappy bird game following a ...
- Tue Nov 26, 2019 3:08 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: I cant find out how to reopen my substack. Please help!
- Replies: 5
- Views: 4434
Re: I cant find out how to reopen my substack. Please help!
thx alot dunbarx! it worked
sorry if i didnt give enough information 
- Mon Nov 25, 2019 8:14 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: I cant find out how to reopen my substack. Please help!
- Replies: 5
- Views: 4434
I cant find out how to reopen my substack. Please help!
Cant reopen my substack. I need help please. 
- Sat Nov 16, 2019 1:53 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Main stack wont show?!
- Replies: 23
- Views: 27195
Re: Main stack wont show?!
well ok then 
- Sat Nov 16, 2019 1:16 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Main stack wont show?!
- Replies: 23
- Views: 27195
Re: Main stack wont show?!
yes i have but it wont show after i've clicked on recent stacks. 
- Sat Nov 16, 2019 12:58 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Main stack wont show?!
- Replies: 23
- Views: 27195
Re: Main stack wont show?!
im using Windows 10. and when i click on recent files on the start menu it doesn't show my work.