Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cheat Engine Based - Platformer Game.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 32

Joined: 13 Sep 2011
Posts: 1521

PostPosted: Thu Feb 19, 2015 5:22 pm    Post subject: Cheat Engine Based - Platformer Game. Reply with quote

Something I've developed during Jan.

A simple platformer game (nothing much to do).
Movement - Player:
A = right
W = up
D = left
Shift = running

Movement - AI:
Arrow keys
Ctrl - Running


Credits for images and sound goes to their creators.
Download:
http://www.mediafire.com/view/zyoe7cv6v6cset4/game.CT

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
SteveAndrew
Master Cheater
Reputation: 30

Joined: 02 Sep 2012
Posts: 323

PostPosted: Fri Feb 20, 2015 12:31 am    Post subject: Reply with quote

LOL a game written into a cheat table lua script! That's pretty cool. Anyway I think you've got your left and right mixed up, unless you're talking about the movement of the map rather then the player. Which it does seem the player is always centered and only the map truly moves.

Also why can you control the AI? Razz It's more like player 2 then AI since it doesn't have any artificial intelligence!

Anyway it's good but I think jumping needs to be perfected. Something about it doesn't feel as good as it should. Other then that though its great! lol

_________________
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 32

Joined: 13 Sep 2011
Posts: 1521

PostPosted: Fri Feb 20, 2015 2:06 am    Post subject: Reply with quote

SteveAndrew wrote:
LOL a game written into a cheat table lua script! That's pretty cool. Anyway I think you've got your left and right mixed up, unless you're talking about the movement of the map rather then the player. Which it does seem the player is always centered and only the map truly moves.

Also why can you control the AI? Razz It's more like player 2 then AI since it doesn't have any artificial intelligence!

Anyway it's good but I think jumping needs to be perfected. Something about it doesn't feel as good as it should. Other then that though its great! lol

Well player should be centered.
Right left does move player, I just move the panel a bit to the left, to center the player (he does actually move in the map).

About AI, wanted to make server/client, actually did make, just something went rubbish (server could receive and update, while client can't).

About jumping, went lazy on it.

Feel free to contribute.

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
alanze
Advanced Cheater
Reputation: 3

Joined: 03 Oct 2012
Posts: 50

PostPosted: Fri Feb 20, 2015 6:56 am    Post subject: Reply with quote

I also used lua scripting to manipulate images in forms but not that advanced way like you, this is great.
Basically if someone is enough dedicated it could recreate a game from C64, Amiga, Nes... just the sound would be a limitation with this tiny xmplay,
keep up developing so others can learn.
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 32

Joined: 13 Sep 2011
Posts: 1521

PostPosted: Fri Feb 20, 2015 7:08 am    Post subject: Reply with quote

alanze wrote:
I also used lua scripting to manipulate images in forms but not that advanced way like you, this is great.
Basically if someone is enough dedicated it could recreate a game from C64, Amiga, Nes... just the sound would be a limitation with this tiny xmplay,
keep up developing so others can learn.


Yeah, when you're limited, you learn to manipulate :p.

If I was a bit more dedicated, it'd be more advanced, but it was a side project, tried to see how well cheat engine responds and updates when updating lot's of objects.

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
alanze
Advanced Cheater
Reputation: 3

Joined: 03 Oct 2012
Posts: 50

PostPosted: Fri Feb 20, 2015 8:17 am    Post subject: Reply with quote

I just checked now, the max number of sounds which can be played at once is 3.
For example to play a background sound, a jumping sound and a shot sound:
xmplayer.playXM(xmFile) - play the background music,
playSound(wavFile) - play the jumping sound,
beep(), play the shot sound, Smile
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 32

Joined: 13 Sep 2011
Posts: 1521

PostPosted: Fri Feb 20, 2015 8:19 am    Post subject: Reply with quote

alanze wrote:
I just checked now, the max number of sounds which can be played at once is 3.
For example to play a background sound, a jumping sound and a shot sound:
xmplayer.playXM(xmFile) - play the background music,
playSound(wavFile) - play the jumping sound,
beep(), play the shot sound, Smile

With some manipulations, you can play more, like using the Wav (And mp3) script from mgr.inz.player.

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
alanze
Advanced Cheater
Reputation: 3

Joined: 03 Oct 2012
Posts: 50

PostPosted: Fri Feb 20, 2015 8:28 am    Post subject: Reply with quote

Are you referring to the sript posted with title "playing MP3 files with playSound [CE6.4]" in lua section?
I did not studied yet enough, how to start (how to call what function) multiple instances of sounds?

[Edit]
Ok, I studied, I now what function to call and how, but just needs to be adapted to play multiple files at once.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 384

Joined: 09 May 2003
Posts: 22997
Location: The netherlands

PostPosted: Fri Feb 20, 2015 9:37 am    Post subject: Reply with quote

playSound has 2 parameters: stream and "WaitTillDone"
Just set WaitTillDone to false, or use threading (createNativeThread)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
alanze
Advanced Cheater
Reputation: 3

Joined: 03 Oct 2012
Posts: 50

PostPosted: Fri Feb 20, 2015 11:04 am    Post subject: Reply with quote

I now about the 2 parameters, when WaitTillDone is false the first song is played then the second but not both in same time.

This is what would be needed for this game style CE application:
playSound(wav1) - play a background music (music length let's say 3 minutes)
--meantime process another tasks
playSound(wav2) - play jump sound (without stopping the background music)
playSound(wav3) - play shot sound (without stopping the background music and jump sound)
--meantime process another tasks

I'm not familiar with threading but I will study and give it a try, thanks for the tip.

[Edit]
I couldn't do it, I leave this for advanced scripters, wav1 was stopped and wav2 played, here is the code which I used:
Code:

wav1=findTableFile('bells.wav')
wav2=findTableFile('birds.wav')

playSound(wav1)

function tempF(thread)
   playSound(wav2)
end

createNativeThread(tempF)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites