Search found 16 matches

by Starpat
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: 23835

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 ...
by Starpat
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: 23835

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 ...
by Starpat
Fri Nov 29, 2019 5:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Main stack wont show?!
Replies: 23
Views: 27190

Re: Main stack wont show?!

Starpat wrote: Sat Nov 16, 2019 12:20 pm 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.
by Starpat
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: 23835

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 ...
by Starpat
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: 23835

Re: How do I make a "if key press space or up or w key" kind of statement?

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! 8)

The map is ripped-off from battle for Wesnoth. :D

https://www.wesnoth.org/
so ur calling me 12. :lol:
by Starpat
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: 23835

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 ...
by Starpat
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: 23835

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 ...
by Starpat
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: 23835

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 ...
by Starpat
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: 4426

Re: I cant find out how to reopen my substack. Please help!

thx alot dunbarx! it worked :D sorry if i didnt give enough information :mrgreen:
by Starpat
Sat Nov 16, 2019 1:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Main stack wont show?!
Replies: 23
Views: 27190

Re: Main stack wont show?!

well ok then :|
by Starpat
Sat Nov 16, 2019 1:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Main stack wont show?!
Replies: 23
Views: 27190

Re: Main stack wont show?!

yes i have but it wont show after i've clicked on recent stacks. :?
by Starpat
Sat Nov 16, 2019 12:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Main stack wont show?!
Replies: 23
Views: 27190

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.