Hi all!
Looking for some help on an idea for a football based game.
I was hoping for the game to work by the main character being a football book and hitting a football, which then lead to the football to move in that direction.
However I'am having trouble with the coding for the movement part for when the ball gets hit and if anyone could offer me some help that would be greatly appreciated!
Many thanks
George
Football game
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 447
- Joined: Mon Jan 23, 2012 12:46 pm
Re: Football game
Hi George,
I think you are looking for the "move" command. Search "move" in the dictionary in the IDE. Basically the command works like this:
You can also use graphic lines and curves as your path of movement like this:
Hope this helps,
--sefro
I think you are looking for the "move" command. Search "move" in the dictionary in the IDE. Basically the command works like this:
Code: Select all
on mouseup
move myobject to mylocation
end mouseup
You can also use graphic lines and curves as your path of movement like this:
Code: Select all
on mouseup
move myobject to the points of graphic "line"
end mouseup
--sefro
-
- VIP Livecode Opensource Backer
- Posts: 4003
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Football game
Hi George,
have a look at this site
http://livecodegamedeveloper.com/blog/2 ... de-pong.lc
it is a site devoted to developing games in LiveCode.
By all means explore the site and see what it offers.
Kind regards
Bernd
have a look at this site
http://livecodegamedeveloper.com/blog/2 ... de-pong.lc
it is a site devoted to developing games in LiveCode.
By all means explore the site and see what it offers.
Kind regards
Bernd