Scripts / Go to a level from the main menu

Author
Message
Rafael Memmel
6
Years of Service
User Offline
Joined: 29th Oct 2018
Location:
Posted: 24th Nov 2018 18:50
None of the following options worked for me...

if iHighlightButton==TITLE_NEW then
JumpToLevel("the asylum 2")
end

if iHighlightButton==TITLE_NEW then
LevelFilenameToLoad("the asylum 2")
end

if iHighlightButton==TITLE_NEW then
SendMessageS("levelfilenametoload","the asylum 2")
end

Ref: https://forum.game-guru.com/thread/216608

Any solution? Is it a bug?
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 24th Nov 2018 19:03 Edited at: 24th Nov 2018 19:06
Im not even sure that's possible ?
The link you supplied they didn't really end up getting it working .
Its not a bug but not the way GG works I don't think.
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 24th Nov 2018 21:23
I think the jump to level only works off of if used from properties (I forget the exact command but it's in the end zone thingy script).

What I would do is have each button in a separate script in separate entities so you can use the if used on each entity.

Kind of what i did in this video but using sprites for buttons instead of having to target the


Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 24th Nov 2018 21:40
That's a really cool idea … You got me thinking now for things I could use that for
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Rafael Memmel
6
Years of Service
User Offline
Joined: 29th Oct 2018
Location:
Posted: 24th Nov 2018 22:16
The solution:



Thanks!
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 24th Nov 2018 22:59
Very Nice well done ..
Is that your own solution ?
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Rafael Memmel
6
Years of Service
User Offline
Joined: 29th Oct 2018
Location:
Posted: 25th Nov 2018 15:32
yes!
PM

Login to post a reply

Server time is: 2024-12-22 20:48:14
Your offset time is: 2024-12-22 20:48:14